]> source.dussan.org Git - aspectj.git/commitdiff
fix for NPE : 130837
authoraclement <aclement>
Tue, 28 Mar 2006 08:09:10 +0000 (08:09 +0000)
committeraclement <aclement>
Tue, 28 Mar 2006 08:09:10 +0000 (08:09 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java

index 313411f7ba742e5cae9c2acc5d616e2549141500..a79ef093138827719942bf58a3d246c1674becbe 100644 (file)
@@ -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()) ||