From f9578daa1e5153f241aee8b640d58351db26241f Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 30 Apr 2009 21:09:26 +0000 Subject: [PATCH] 274559: fix: manipulating locals when debug info off --- .../internal/compiler/ast/InterTypeMethodDeclaration.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.39.5