From ef9d5b81965983759649e3d0d8cc4e4f26e1f5af Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 19 Nov 2009 17:19:30 +0000 Subject: [PATCH] 294647: guard and possible fix --- .../ajdt/internal/compiler/lookup/EclipseSourceType.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5