]> source.dussan.org Git - aspectj.git/commitdiff
163802: produce sensible error rather than NPEing
authoraclement <aclement>
Fri, 21 Mar 2008 01:43:30 +0000 (01:43 +0000)
committeraclement <aclement>
Fri, 21 Mar 2008 01:43:30 +0000 (01:43 +0000)
weaver/src/org/aspectj/weaver/ResolvedType.java

index c7009a7a63bb76efc643ce99d10bf93dd5e9df2c..7fb649372a138f908985de2cf5d5f2076f8e87d1 100644 (file)
@@ -1205,6 +1205,9 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl
     protected void collectInterTypeMungers(List collector) {
         for (Iterator iter = getDirectSupertypes(); iter.hasNext();) {
                        ResolvedType superType = (ResolvedType) iter.next();
+                       if (superType == null) {
+                           throw new BCException("UnexpectedProblem: a supertype in the hierarchy for " + this.getName() + " is null");
+            }
             superType.collectInterTypeMungers(collector);
                }