From: aclement Date: Mon, 16 Mar 2009 19:53:36 +0000 (+0000) Subject: 268611: building broken deca code (fix) X-Git-Tag: pre268419~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f5f551ffc0819f793122b6d0afe075ad377e027;p=aspectj.git 268611: building broken deca code (fix) --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/DeclareAnnotation.java b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/DeclareAnnotation.java index 0fc665bcb..9757bbdae 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/DeclareAnnotation.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/DeclareAnnotation.java @@ -355,7 +355,7 @@ public class DeclareAnnotation extends Declare { */ public UnresolvedType getAnnotationTypeX() { ensureAnnotationDiscovered(); - return this.annotation.getType(); + return (this.annotation == null ? null : this.annotation.getType()); } /**