From: aclement Date: Thu, 9 Sep 2010 17:58:20 +0000 (+0000) Subject: 324767 X-Git-Tag: V1_6_10RC1~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5b659a650404dae44b9d1056e9ab819e3dfd661;p=aspectj.git 324767 --- 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 7a1decfdf..2d17cfb65 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 @@ -543,8 +543,13 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC } ReferenceBinding[] memberTypes = sourceType.memberTypes; - for (int i = 0, length = memberTypes.length; i < length; i++) { - buildInterTypeAndPerClause(((SourceTypeBinding) memberTypes[i]).scope); + if (memberTypes == null) { + System.err.println("Unexpectedly found null for memberTypes of " + sourceType.debugName()); + } + if (memberTypes != null) { + for (int i = 0, length = memberTypes.length; i < length; i++) { + buildInterTypeAndPerClause(((SourceTypeBinding) memberTypes[i]).scope); + } } }