diff options
author | aclement <aclement> | 2006-03-28 08:09:10 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-03-28 08:09:10 +0000 |
commit | 41f1f3a4174de86413942cd8f2c2e7c45d9824d7 (patch) | |
tree | 49208a46b18de7107355aa9bf84bbdc8813fd5db /org.aspectj.ajdt.core/src | |
parent | a555c963c0512d8d363ef2b89eba01e274813290 (diff) | |
download | aspectj-41f1f3a4174de86413942cd8f2c2e7c45d9824d7.tar.gz aspectj-41f1f3a4174de86413942cd8f2c2e7c45d9824d7.zip |
fix for NPE : 130837
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java index 313411f7b..a79ef0931 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java @@ -410,6 +410,7 @@ public class ValidateAtAspectJAnnotationsVisitor extends ASTVisitor { private FormalBinding[] buildFormalAdviceBindingsFrom(MethodDeclaration mDecl) { if (mDecl.arguments == null) return new FormalBinding[0]; + if (mDecl.binding == null) return new FormalBinding[0]; EclipseFactory factory = EclipseFactory.fromScopeLookupEnvironment(mDecl.scope); String extraArgName = maybeGetExtraArgName(); if (extraArgName == null) extraArgName = ""; @@ -417,7 +418,7 @@ public class ValidateAtAspectJAnnotationsVisitor extends ASTVisitor { for (int i = 0; i < mDecl.arguments.length; i++) { Argument arg = mDecl.arguments[i]; String name = new String(arg.name); - TypeBinding argTypeBinding = mDecl.binding.parameters[i]; + TypeBinding argTypeBinding = mDecl.binding.parameters[i]; UnresolvedType type = factory.fromBinding(argTypeBinding); if (CharOperation.equals(joinPoint,argTypeBinding.signature()) || CharOperation.equals(joinPointStaticPart,argTypeBinding.signature()) || |