]> source.dussan.org Git - aspectj.git/commitdiff
294647: guard and possible fix
authoraclement <aclement>
Thu, 19 Nov 2009 17:19:30 +0000 (17:19 +0000)
committeraclement <aclement>
Thu, 19 Nov 2009 17:19:30 +0000 (17:19 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java

index 4f5260705b37664ec7c5f9734e96ec3e623183ea..3d2c483c7b8242fc608a915a0046af8168cad79b 100644 (file)
@@ -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;