]> source.dussan.org Git - aspectj.git/commitdiff
324767
authoraclement <aclement>
Thu, 9 Sep 2010 17:58:20 +0000 (17:58 +0000)
committeraclement <aclement>
Thu, 9 Sep 2010 17:58:20 +0000 (17:58 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java

index 7a1decfdf83377c9a901a79f6e6f79fbda49b39c..2d17cfb65fe7cd67c740becfd4b6feb49143a095 100644 (file)
@@ -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);
+                       }
                }
        }