diff options
author | aclement <aclement> | 2006-05-30 09:29:19 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-30 09:29:19 +0000 |
commit | 91f54fd96f209fe138228040673a59f9cf210a92 (patch) | |
tree | 25912536f1f5c948ec15ff4ed581367e35935b72 | |
parent | 6629274a350cef09ad7c02d67ac194cab7b0bd93 (diff) | |
download | aspectj-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.jar | bin | 112405 -> 114473 bytes | |||
-rw-r--r-- | lib/test/aspectjrt.jar | bin | 112405 -> 114473 bytes | |||
-rw-r--r-- | runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java | 6 |
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/aspectj/lib/aspectjrt.jar b/lib/aspectj/lib/aspectjrt.jar Binary files differindex 77308ed31..01aac1180 100644 --- a/lib/aspectj/lib/aspectjrt.jar +++ b/lib/aspectj/lib/aspectjrt.jar diff --git a/lib/test/aspectjrt.jar b/lib/test/aspectjrt.jar Binary files differindex 77308ed31..01aac1180 100644 --- a/lib/test/aspectjrt.jar +++ b/lib/test/aspectjrt.jar 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) { |