]> source.dussan.org Git - aspectj.git/commitdiff
184447: guard for npe
authoraclement <aclement>
Fri, 21 Mar 2008 18:14:28 +0000 (18:14 +0000)
committeraclement <aclement>
Fri, 21 Mar 2008 18:14:28 +0000 (18:14 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java

index f0bfa557eba8925cd89c77cc537faa7455cacc12..20839689344bc54cdb577f194507631fbd82d611 100644 (file)
@@ -800,7 +800,8 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC
                                // BUG BUG BUG - We dont test these abits are correct, in fact we'll be very lucky if they are.
                                // What does that mean?  It means on an incremental compile you might get away with an
                                // annotation that isn't allowed on a type being put on a type.
-                               abits = toAdd[0].resolvedType.getAnnotationTagBits(); 
+                               if (toAdd[0].resolvedType != null) // pr184447
+                                   abits = toAdd[0].resolvedType.getAnnotationTagBits(); 
                        }               
                } else {
                        // much nicer, its a real SourceTypeBinding so we can stay in eclipse land