]> source.dussan.org Git - aspectj.git/commitdiff
fix for problem found whilst looking into 153380
authoraclement <aclement>
Thu, 10 Aug 2006 10:31:47 +0000 (10:31 +0000)
committeraclement <aclement>
Thu, 10 Aug 2006 10:31:47 +0000 (10:31 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjPipeliningCompilerAdapter.java

index d2cf77b3bf83d164c53ee442dd9610bbbb830260..b4998261c680907e1b1306bd4ef4c3bf5eb9bda0 100644 (file)
@@ -570,6 +570,7 @@ public class AjPipeliningCompilerAdapter extends AbstractCompilerAdapter {
                        for (int index = 0; index < declaration.annotations.length; index++) {
                                TypeDeclaration.resolveAnnotations(declaration.staticInitializerScope, declaration.annotations, declaration.binding); // force annotation resolution
                                Annotation a = declaration.annotations[index];
+                               if (a.resolvedType == null) continue; // another problem is being reported, so don't crash here
                                if (CharOperation.equals(a.resolvedType.signature(),aspectSig)) return true;
                        }
                }