]> source.dussan.org Git - aspectj.git/commitdiff
Guards Guards! Need to check if something is null before I start using it.
authoraclement <aclement>
Tue, 17 Aug 2004 13:26:52 +0000 (13:26 +0000)
committeraclement <aclement>
Tue, 17 Aug 2004 13:26:52 +0000 (13:26 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java

index ffe8e37e34c6b777c2c095df789681a1f1aa2379..06c52156149c1f6656aaf929f3ebadcd19fe3d35 100644 (file)
@@ -277,8 +277,8 @@ public class AsmHierarchyBuilder extends ASTVisitor {
 //             String name = new String(memberTypeDeclaration.name);
                
                String fullName = "<undefined>";
-               if (memberTypeDeclaration.binding != null
-                       && memberTypeDeclaration.binding.constantPoolName() != null) {
+               if (memberTypeDeclaration.allocation != null
+                       && memberTypeDeclaration.allocation.type != null) {
                        // Create a name something like 'new Runnable() {..}'
                        fullName = "new "+memberTypeDeclaration.allocation.type.toString()+"() {..}";
                }