]> source.dussan.org Git - aspectj.git/commitdiff
fix for 148536
authoraclement <aclement>
Sun, 25 Jun 2006 18:51:41 +0000 (18:51 +0000)
committeraclement <aclement>
Sun, 25 Jun 2006 18:51:41 +0000 (18:51 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java

index 2b966d374ee5bd15d80d1957fb461cae88d3f4a2..61aa3ec4dd392f142179eb3e53fd9d2749162b1b 100644 (file)
@@ -803,7 +803,8 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC
                        TypeDeclaration typeDecl = ((SourceTypeBinding)mbs[0].declaringClass).scope.referenceContext;
                        AbstractMethodDeclaration methodDecl = typeDecl.declarationOf(mbs[0]);
                        toAdd = methodDecl.annotations; // this is what to add
-                       abits = toAdd[0].resolvedType.getAnnotationTagBits();
+                       if (toAdd[0].resolvedType!=null) // pr148536
+                         abits = toAdd[0].resolvedType.getAnnotationTagBits();
                }
                
                if (sourceType instanceof BinaryTypeBinding) {