]> source.dussan.org Git - aspectj.git/commitdiff
fix for NPE in pr132087
authoraclement <aclement>
Mon, 27 Mar 2006 21:39:46 +0000 (21:39 +0000)
committeraclement <aclement>
Mon, 27 Mar 2006 21:39:46 +0000 (21:39 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java

index aab7815d2cfc66683f449a335e2b1f81ad55ef54..11aaf9aa149067053e04d47a655ba53cd0c44c6b 100644 (file)
@@ -399,7 +399,10 @@ public class AsmHierarchyBuilder extends ASTVisitor {
                        if (peNode.getKind().equals(IProgramElement.Kind.INTER_TYPE_FIELD)) {
                                peNode.setCorrespondingType(methodDeclaration.returnType.toString());
                        } else {
-                               peNode.setCorrespondingType(methodDeclaration.returnType.resolvedType.debugName());                             
+                               if (methodDeclaration.returnType.resolvedType!=null) 
+                                       peNode.setCorrespondingType(methodDeclaration.returnType.resolvedType.debugName());
+                               else 
+                                       peNode.setCorrespondingType(null);
                        }
                } else {
                  peNode.setCorrespondingType(null);