From: aclement Date: Tue, 17 Jan 2006 13:36:08 +0000 (+0000) Subject: fix for 123695 - allow for null (no annotations) X-Git-Tag: POST_MEMORY_CHANGES~180 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a315d0a21d3c4b57436a8d77ab980f910ac17e5;p=aspectj.git fix for 123695 - allow for null (no annotations) --- diff --git a/weaver/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java index 74deb96b1..9ab66d32f 100644 --- a/weaver/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java @@ -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;