From: Andy Clement Date: Mon, 16 Apr 2012 22:04:17 +0000 (-0700) Subject: NPE guard X-Git-Tag: V1_7_0RC1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9fb822729054bd82c327945a531ba8ff160bbcad;p=aspectj.git NPE guard --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java index 08366dbb1..97a67a00a 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java @@ -702,8 +702,9 @@ public class AsmHierarchyBuilder extends ASTVisitor { } output.append("> "); } + String methodName = methodDeclaration.selector==null?"null":new String(methodDeclaration.selector); - methodDeclaration.printReturnType(0, output).append(methodDeclaration.selector).append('('); + methodDeclaration.printReturnType(0, output).append(methodName).append('('); if (methodDeclaration.arguments != null) { for (int i = 0; i < methodDeclaration.arguments.length; i++) { if (i > 0) {