From: aclement Date: Sun, 1 Jun 2008 20:47:29 +0000 (+0000) Subject: 234934: bug fix - npe X-Git-Tag: V1_6_1rc1~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57d181b644a6cdffad6130ad24a5835c1da9d120;p=aspectj.git 234934: bug fix - npe --- 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);