From: aclement Date: Tue, 17 Aug 2004 13:26:52 +0000 (+0000) Subject: Guards Guards! Need to check if something is null before I start using it. X-Git-Tag: V1_2_1~131 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2dfa140064f0ac405787bfca0abba87c72895c5b;p=aspectj.git Guards Guards! Need to check if something is null before I start using it. --- 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 ffe8e37e3..06c521561 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 @@ -277,8 +277,8 @@ public class AsmHierarchyBuilder extends ASTVisitor { // String name = new String(memberTypeDeclaration.name); String fullName = ""; - 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()+"() {..}"; }