summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-30 09:29:19 +0000
committeraclement <aclement>2006-05-30 09:29:19 +0000
commit91f54fd96f209fe138228040673a59f9cf210a92 (patch)
tree25912536f1f5c948ec15ff4ed581367e35935b72
parent6629274a350cef09ad7c02d67ac194cab7b0bd93 (diff)
downloadaspectj-91f54fd96f209fe138228040673a59f9cf210a92.tar.gz
aspectj-91f54fd96f209fe138228040673a59f9cf210a92.zip
fix for NPE in SignatureImpl reported on the list by Simon Walter
-rw-r--r--lib/aspectj/lib/aspectjrt.jarbin112405 -> 114473 bytes
-rw-r--r--lib/test/aspectjrt.jarbin112405 -> 114473 bytes
-rw-r--r--runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java6
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/aspectj/lib/aspectjrt.jar b/lib/aspectj/lib/aspectjrt.jar
index 77308ed31..01aac1180 100644
--- a/lib/aspectj/lib/aspectjrt.jar
+++ b/lib/aspectj/lib/aspectjrt.jar
Binary files differ
diff --git a/lib/test/aspectjrt.jar b/lib/test/aspectjrt.jar
index 77308ed31..01aac1180 100644
--- a/lib/test/aspectjrt.jar
+++ b/lib/test/aspectjrt.jar
Binary files differ
diff --git a/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java b/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java
index cb5b269ef..5dd024855 100644
--- a/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java
+++ b/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java
@@ -213,7 +213,11 @@ abstract class SignatureImpl implements Signature {
}
public String get(int cacheOffset) {
- return array()[cacheOffset];
+ String[] cachedArray = array();
+ if (cachedArray == null) {
+ return null;
+ }
+ return cachedArray[cacheOffset];
}
public void set(int cacheOffset, String result) {