From: aclement Date: Thu, 19 Nov 2009 17:19:30 +0000 (+0000) Subject: 294647: guard and possible fix X-Git-Tag: V1_6_7~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef9d5b81965983759649e3d0d8cc4e4f26e1f5af;p=aspectj.git 294647: guard and possible fix --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java index 4f5260705..3d2c483c7 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java @@ -241,7 +241,9 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate { if (amd instanceof PointcutDeclaration) { PointcutDeclaration d = (PointcutDeclaration) amd; ResolvedPointcutDefinition df = d.makeResolvedPointcutDefinition(factory); - declaredPointcuts.add(df); + if (df!=null) { + declaredPointcuts.add(df); + } } else if (amd instanceof InterTypeDeclaration) { // these are handled in a separate pass continue;