]> source.dussan.org Git - aspectj.git/commitdiff
debug Ryans problem
authoraclement <aclement>
Mon, 3 Nov 2008 20:26:56 +0000 (20:26 +0000)
committeraclement <aclement>
Mon, 3 Nov 2008 20:26:56 +0000 (20:26 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java

index b532b156ee3a8cb1b2fa6827f4eda87a3955698f..e267ffb2ed5d0e215d525d952c5ab4ad0dbd22ab 100644 (file)
@@ -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]));
                        }
                }