diff options
author | aclement <aclement> | 2006-03-27 19:11:57 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-03-27 19:11:57 +0000 |
commit | 91473b3badbc89811be8c6223adc6b6641e496d2 (patch) | |
tree | 4a389a0f34ae564929a42eadf3f103feb9c591b0 /org.aspectj.ajdt.core | |
parent | d578125c1bd261349a8c290fbe42e84305111948 (diff) | |
download | aspectj-91473b3badbc89811be8c6223adc6b6641e496d2.tar.gz aspectj-91473b3badbc89811be8c6223adc6b6641e496d2.zip |
fix for NPE in pr132160
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java index b061596b0..a1da0cffd 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java @@ -227,7 +227,7 @@ public class AsmElementFormatter { //TODO AV - could speed up if we could dig only for @Aspect declaring types (or aspect if mixed style allowed) //??? how to : node.getParent().getKind().equals(IProgramElement.Kind.ASPECT)) { - if (true && methodDeclaration!=null && methodDeclaration.annotations != null) { + if (true && methodDeclaration!=null && methodDeclaration.annotations != null && methodDeclaration.scope!=null) { for (int i = 0; i < methodDeclaration.annotations.length; i++) { //Note: AV: implicit single advice type support here (should be enforced somewhere as well (APT etc)) Annotation annotation = methodDeclaration.annotations[i]; |