aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
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 /runtime
parent6629274a350cef09ad7c02d67ac194cab7b0bd93 (diff)
downloadaspectj-91f54fd96f209fe138228040673a59f9cf210a92.tar.gz
aspectj-91f54fd96f209fe138228040673a59f9cf210a92.zip
fix for NPE in SignatureImpl reported on the list by Simon Walter
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java6
1 files changed, 5 insertions, 1 deletions
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) {