From 8ce9dcfa94ad3c702fa0bbc8529d6e4b169661a6 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 21 Mar 2008 18:14:28 +0000 Subject: [PATCH] 184447: guard for npe --- .../ajdt/internal/compiler/lookup/AjLookupEnvironment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java index f0bfa557e..208396893 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java @@ -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 -- 2.39.5