aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/patterns/DeclareAnnotation.java2
1 files changed, 1 insertions, 1 deletions
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());
}
/**