From: aclement Date: Wed, 1 Sep 2010 00:29:30 +0000 (+0000) Subject: 324135: npe fix X-Git-Tag: V1_6_10RC1~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88fab6ad42f17bce86217d0b0fd6525dd5953bc4;p=aspectj.git 324135: npe fix --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java index e143c8aa0..83fca1b00 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java @@ -1762,6 +1762,9 @@ public class AjState implements CompilerConfigurationChangeFlags, TypeDelegateRe } if (binaryNestedTypes != null) { int bnLength = binaryNestedTypes.length; + if (existingBinaryNestedTypes.length != bnLength) { + return true; + } for (int m = 0; m < bnLength; m++) { IBinaryNestedType bnt = binaryNestedTypes[m]; IBinaryNestedType existingBnt = existingBinaryNestedTypes[m]; @@ -2151,7 +2154,7 @@ public class AjState implements CompilerConfigurationChangeFlags, TypeDelegateRe ClassParser parser = new ClassParser(f.toString()); return world.buildBcelDelegate(referenceType, parser.parse(), true, false); } catch (IOException e) { - System.err.println("Failed to recover "+referenceType); + System.err.println("Failed to recover " + referenceType); e.printStackTrace(); } return null;