summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2008-07-16 17:04:03 +0000
committeraclement <aclement>2008-07-16 17:04:03 +0000
commit36311b94bb2057af442f50e1308b1328737e10f3 (patch)
treecbff4d32062fd5c1d970ec912100e608666ac28d /org.aspectj.ajdt.core
parentda38c1ebfcaf19624af8e218e7c4df7045bf80ef (diff)
downloadaspectj-36311b94bb2057af442f50e1308b1328737e10f3.tar.gz
aspectj-36311b94bb2057af442f50e1308b1328737e10f3.zip
avoid NPE building AJDT 1.5.3RC1 code on Eclipse 3.4
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AccessForInlineVisitor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AccessForInlineVisitor.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AccessForInlineVisitor.java
index 59df0bfca..2ac3d2297 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AccessForInlineVisitor.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AccessForInlineVisitor.java
@@ -101,7 +101,8 @@ public class AccessForInlineVisitor extends ASTVisitor {
for (int i=0, len=ref.otherBindings.length; i < len && cont; i++) {
FieldBinding binding = ref.otherBindings[i];
ref.otherBindings[i] = getAccessibleField(binding, receiverType);
- if (!(binding instanceof ProblemFieldBinding)) receiverType = binding.type;
+ if (!(binding instanceof ProblemFieldBinding)
+ && binding!=null) receiverType = binding.type; // TODO Why is this sometimes null?
else cont=false;
}
}