diff options
Diffstat (limited to 'aspectj5rt/java5-src/org/aspectj')
-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; |