From 3a315d0a21d3c4b57436a8d77ab980f910ac17e5 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 17 Jan 2006 13:36:08 +0000 Subject: [PATCH] fix for 123695 - allow for null (no annotations) --- .../org/aspectj/weaver/patterns/WildAnnotationTypePattern.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5