From 2dfa140064f0ac405787bfca0abba87c72895c5b Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 17 Aug 2004 13:26:52 +0000 Subject: [PATCH] Guards Guards! Need to check if something is null before I start using it. --- .../ajdt/internal/core/builder/AsmHierarchyBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()+"() {..}"; } -- 2.39.5