]> source.dussan.org Git - aspectj.git/commitdiff
227540: npe guard + diagnostics
authoraclement <aclement>
Thu, 17 Apr 2008 16:46:56 +0000 (16:46 +0000)
committeraclement <aclement>
Thu, 17 Apr 2008 16:46:56 +0000 (16:46 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java

index ceba922cc5ca77be5c88daff94e489d6c71b1c1a..ec2b6ec47d60314f2d692d701688e0f2493b6433 100644 (file)
@@ -232,7 +232,10 @@ public class AjProblemReporter extends ProblemReporter {
                for (Iterator i = onTypeX.getInterTypeMungersIncludingSupers().iterator(); i.hasNext(); ) {
                        ConcreteTypeMunger m = (ConcreteTypeMunger)i.next();
                        ResolvedMember sig = m.getSignature();
-            if (!Modifier.isAbstract(sig.getModifiers())) {
+                       if (sig == null) {
+                System.err.println("227540: Null signature for munger: " + m);
+            }
+            if (sig != null && !Modifier.isAbstract(sig.getModifiers())) {
                        ResolvedMember abstractMember = factory.makeResolvedMember(abstractMethod);
                        if (abstractMember.getName().startsWith("ajc$interMethodDispatch")) {                   
                                ResolvedType dType = factory.getWorld().resolve(sig.getDeclaringType(),false);