From: aclement Date: Tue, 30 May 2006 09:29:19 +0000 (+0000) Subject: fix for NPE in SignatureImpl reported on the list by Simon Walter X-Git-Tag: V1_5_2rc1~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91f54fd96f209fe138228040673a59f9cf210a92;p=aspectj.git fix for NPE in SignatureImpl reported on the list by Simon Walter --- diff --git a/lib/aspectj/lib/aspectjrt.jar b/lib/aspectj/lib/aspectjrt.jar index 77308ed31..01aac1180 100644 Binary files a/lib/aspectj/lib/aspectjrt.jar and b/lib/aspectj/lib/aspectjrt.jar differ diff --git a/lib/test/aspectjrt.jar b/lib/test/aspectjrt.jar index 77308ed31..01aac1180 100644 Binary files a/lib/test/aspectjrt.jar and b/lib/test/aspectjrt.jar 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) {