aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2010-09-09 17:58:20 +0000
committeraclement <aclement>2010-09-09 17:58:20 +0000
commitf5b659a650404dae44b9d1056e9ab819e3dfd661 (patch)
tree6c75599065a854b056b8a145ca1e86c87f32dac9 /org.aspectj.ajdt.core
parent6249672405e8d1303ea9087f35b72114586f0aad (diff)
downloadaspectj-f5b659a650404dae44b9d1056e9ab819e3dfd661.tar.gz
aspectj-f5b659a650404dae44b9d1056e9ab819e3dfd661.zip
324767
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java9
1 files 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);
+ }
}
}