]> source.dussan.org Git - aspectj.git/commitdiff
274559: fix: manipulating locals when debug info off
authoraclement <aclement>
Thu, 30 Apr 2009 21:09:26 +0000 (21:09 +0000)
committeraclement <aclement>
Thu, 30 Apr 2009 21:09:26 +0000 (21:09 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java

index d0dffa6829a25da6b70c75140e98d1a48cbe9c93..f6c89b127be5621a2107c5dbee2c8d4c9869ef73 100644 (file)
@@ -301,9 +301,11 @@ public class InterTypeMethodDeclaration extends InterTypeDeclaration {
                AstUtil.generateReturn(dispatchBinding.returnType, codeStream);
 
                // tag the local variables as used throughout the method
-               if (itdArgs != null) {
+               if (itdArgs != null && codeStream.locals != null) {
                        for (int a = 0; a < itdArgs.length; a++) {
-                               codeStream.locals[a].recordInitializationEndPC(codeStream.position);
+                               if (codeStream.locals[a] != null) {
+                                       codeStream.locals[a].recordInitializationEndPC(codeStream.position);
+                               }
                        }
                }
                classFile.completeCodeAttribute(codeAttributeOffset);