diff options
author | acolyer <acolyer> | 2005-04-20 12:57:49 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-04-20 12:57:49 +0000 |
commit | 78abc76610cfb5fd2a2282086adfb017537ce49c (patch) | |
tree | 976a993332b1f2aeb7fb9fbc283cdccf71707b24 /org.aspectj.ajdt.core | |
parent | a92b2f0201a3fa6b02a9f3c67e9b34a17c0fb7f3 (diff) | |
download | aspectj-78abc76610cfb5fd2a2282086adfb017537ce49c.tar.gz aspectj-78abc76610cfb5fd2a2282086adfb017537ce49c.zip |
fix for Bugzilla Bug 91858
NullPointerException when declare @type is spelt with capital letter
patch submitted by Andrew Huff
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareAnnotationDeclaration.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareAnnotationDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareAnnotationDeclaration.java index d7da525e5..dbe4ca748 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareAnnotationDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareAnnotationDeclaration.java @@ -80,7 +80,9 @@ public class DeclareAnnotationDeclaration extends DeclareDeclaration { public void postParse(TypeDeclaration typeDec) { super.postParse(typeDec); - ((DeclareAnnotation)declareDecl).setAnnotationMethod(new String(selector)); + if (declareDecl != null){ + ((DeclareAnnotation)declareDecl).setAnnotationMethod(new String(selector)); + } } } |