diff options
author | aclement <aclement> | 2008-02-28 21:09:20 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-02-28 21:09:20 +0000 |
commit | fca2a297a2c9bbb432280280e68c5619fda13fb6 (patch) | |
tree | 6c8be8ef56591a3c3ef057eb1a576a3af402a033 /aspectj5rt | |
parent | caf8960e2b98d6bbd4e5ade65f05e128c240ddc3 (diff) | |
download | aspectj-fca2a297a2c9bbb432280280e68c5619fda13fb6.tar.gz aspectj-fca2a297a2c9bbb432280280e68c5619fda13fb6.zip |
fix for http://jira.springframework.org/browse/SPR-4512
Diffstat (limited to 'aspectj5rt')
-rw-r--r-- | aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java b/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java index 93ba5cc6f..5ac17e26f 100644 --- a/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java +++ b/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java @@ -34,8 +34,8 @@ public class AjTypeSystem { * AspectJ-awareness on top. */ public static <T> AjType<T> getAjType(Class<T> fromClass) { - if (ajTypes.containsKey(fromClass)) { - WeakReference<AjType> weakRefToAjType = ajTypes.get(fromClass); + WeakReference<AjType> weakRefToAjType = ajTypes.get(fromClass); + if (weakRefToAjType!=null) { AjType<T> theAjType = weakRefToAjType.get(); if (theAjType != null) { return theAjType; |