From f5b659a650404dae44b9d1056e9ab819e3dfd661 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 9 Sep 2010 17:58:20 +0000 Subject: [PATCH] 324767 --- .../internal/compiler/lookup/AjLookupEnvironment.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); + } } } -- 2.39.5