From: aclement Date: Thu, 30 Apr 2009 21:09:26 +0000 (+0000) Subject: 274559: fix: manipulating locals when debug info off X-Git-Tag: V1_6_5~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f9578daa1e5153f241aee8b640d58351db26241f;p=aspectj.git 274559: fix: manipulating locals when debug info off --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java index d0dffa682..f6c89b127 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java @@ -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);