]> source.dussan.org Git - aspectj.git/commitdiff
fix for 123695 - allow for null (no annotations)
authoraclement <aclement>
Tue, 17 Jan 2006 13:36:08 +0000 (13:36 +0000)
committeraclement <aclement>
Tue, 17 Jan 2006 13:36:08 +0000 (13:36 +0000)
weaver/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java

index 74deb96b194e75d199cb02c02db75186fd8c33b7..9ab66d32fba9399591237ab82d1f6a729ee947c0 100644 (file)
@@ -58,7 +58,8 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern {
                // matches if the type of any of the annotations on the AnnotatedElement is
                // matched by the typePattern.
                ResolvedType[] annTypes = annotated.getAnnotationTypes();
-               if (annTypes.length!=0) {
+
+               if (annTypes!=null && annTypes.length!=0) {
                        for (int i = 0; i < annTypes.length; i++) {
                                if (typePattern.matches(annTypes[i],TypePattern.STATIC).alwaysTrue()) {
                                        return FuzzyBoolean.YES;