From fe99e6bfec2689b03ffcfd7da960e3cd3bd78a54 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 21 Mar 2008 01:43:30 +0000 Subject: [PATCH] 163802: produce sensible error rather than NPEing --- weaver/src/org/aspectj/weaver/ResolvedType.java | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.5