From: aclement Date: Fri, 21 Mar 2008 01:43:30 +0000 (+0000) Subject: 163802: produce sensible error rather than NPEing X-Git-Tag: V1_6_0rc1~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe99e6bfec2689b03ffcfd7da960e3cd3bd78a54;p=aspectj.git 163802: produce sensible error rather than NPEing --- diff --git a/weaver/src/org/aspectj/weaver/ResolvedType.java b/weaver/src/org/aspectj/weaver/ResolvedType.java index c7009a7a6..7fb649372 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedType.java +++ b/weaver/src/org/aspectj/weaver/ResolvedType.java @@ -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); }