From 57d181b644a6cdffad6130ad24a5835c1da9d120 Mon Sep 17 00:00:00 2001 From: aclement Date: Sun, 1 Jun 2008 20:47:29 +0000 Subject: [PATCH] 234934: bug fix - npe --- .../weaver/patterns/ExactAnnotationFieldTypePattern.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java index ba4ebef4f..66f36a229 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java @@ -60,7 +60,8 @@ public class ExactAnnotationFieldTypePattern extends ExactAnnotationTypePattern resolved = true; FormalBinding formalBinding = scope.lookupFormal(formalName); if (formalBinding == null) { - scope.message(IMessage.ERROR, this, "when using @annotation(()), must be bound"); + scope.message(IMessage.ERROR, this, "When using @annotation(()), must be bound"); + return this; } annotationType = scope.getWorld().resolve(annotationType, true); -- 2.39.5