From: aclement Date: Mon, 3 Nov 2008 20:26:56 +0000 (+0000) Subject: debug Ryans problem X-Git-Tag: V1_6_3rc1~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=20829e432308522e9c03befe5c077d757ea49358;p=aspectj.git debug Ryans problem --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java index b532b156e..e267ffb2e 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java @@ -243,6 +243,12 @@ public class BcelObjectType extends AbstractReferenceTypeDelegate { } else { interfaceTypes = new ResolvedType[interfaceSignatures.length]; for (int i = 0, len = interfaceSignatures.length; i < len; i++) { + if (interfaceSignatures[i] == null) { // debug for NPE + String msg = "Null interface signature (element:" + i + " of " + interfaceSignatures.length + + "). Type for which we" + "are looking at interfaces is " + this.className + "."; + System.err.println(msg); + throw new BCException(msg); + } interfaceTypes[i] = getResolvedTypeX().getWorld().resolve(UnresolvedType.forSignature(interfaceSignatures[i])); } }