diff options
author | aclement <aclement> | 2004-09-30 08:18:32 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-09-30 08:18:32 +0000 |
commit | a89962434e080f2cb939dd59726f1acd65b31d6a (patch) | |
tree | fee7a2216679f748163ed3b5c1b2e673f297aa18 /org.aspectj.ajdt.core | |
parent | 3ea58899058ca5ff3ec3f9ad7396cfde56bda2a5 (diff) | |
download | aspectj-a89962434e080f2cb939dd59726f1acd65b31d6a.tar.gz aspectj-a89962434e080f2cb939dd59726f1acd65b31d6a.zip |
Fix for Bugzilla Bug 75129
NPE on thisJoinPoint mistake
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java index a873f0f2b..a0f809766 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java @@ -158,6 +158,10 @@ public class ThisJoinPointVisitor extends ASTVisitor { private void replaceEffectivelyStaticRef(MessageSend call) { NameReference receiver = (NameReference) call.receiver; + + // Don't continue if the call binding is null, as we are going to report an error about this line of code! + if (call.binding==null) return; + //System.err.println("replace static ref: " + receiver + " is " + System.identityHashCode(receiver)); receiver.binding = thisJoinPointStaticPartDecLocal; //thisJoinPointStaticPartDec; receiver.codegenBinding = thisJoinPointStaticPartDecLocal; |