summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2007-02-16 10:02:27 +0000
committeraclement <aclement>2007-02-16 10:02:27 +0000
commit4177bedfe6e1fe4240fddb7de6b9eaed38b9f0cf (patch)
tree1fb935ea7205225784ad95e7db18aa04eeeab7c2 /org.aspectj.ajdt.core
parentbc1b63af578c837455c4a867684ffc8681bc77f2 (diff)
downloadaspectj-4177bedfe6e1fe4240fddb7de6b9eaed38b9f0cf.tar.gz
aspectj-4177bedfe6e1fe4240fddb7de6b9eaed38b9f0cf.zip
171667: npe guards
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java
index 11a1e728d..448e54381 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java
@@ -377,8 +377,12 @@ public class AjProblemReporter extends ProblemReporter {
for (Iterator i = itMungers.iterator(); i.hasNext(); ) {
ConcreteTypeMunger m = (ConcreteTypeMunger)i.next();
ResolvedMember sig = m.getSignature();
+ if (sig==null) continue; // we aren't interested in other kinds of munger
+ UnresolvedType dType = sig.getDeclaringType();
+ if (dType==null) continue;
+ ResolvedType resolvedDeclaringType = dType.resolve(factory.getWorld());
ResolvedMember rm = AjcMemberMaker.interMethod(sig,m.getAspectType(),
- sig.getDeclaringType().resolve(factory.getWorld()).isInterface());
+ resolvedDeclaringType.isInterface());
if (ResolvedType.matches(rm,possiblyErroneousRm)) {
// match, so dont need to report a problem!
return;