From 88fab6ad42f17bce86217d0b0fd6525dd5953bc4 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 1 Sep 2010 00:29:30 +0000 Subject: [PATCH] 324135: npe fix --- .../src/org/aspectj/ajdt/internal/core/builder/AjState.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5