From 4177bedfe6e1fe4240fddb7de6b9eaed38b9f0cf Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 16 Feb 2007 10:02:27 +0000 Subject: [PATCH] 171667: npe guards --- .../ajdt/internal/compiler/problem/AjProblemReporter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5