]> source.dussan.org Git - aspectj.git/commitdiff
NPE guard
authorAndy Clement <andrew.clement@gmail.com>
Mon, 16 Apr 2012 22:04:17 +0000 (15:04 -0700)
committerAndy Clement <andrew.clement@gmail.com>
Mon, 16 Apr 2012 22:04:17 +0000 (15:04 -0700)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java

index 08366dbb1b35f388a4dd463ef507f30b35b81f32..97a67a00ab1f419729c4291b0d9a569c1c74ea66 100644 (file)
@@ -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) {