From 7dc7cdd9bdd7ca902785e4037c6893fe1c5f1418 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 10 Mar 2005 20:35:44 +0000 Subject: [PATCH] Declare annotation: cope with null symbolic declare --- .../ajdt/internal/compiler/ast/DeclareDeclaration.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java index 99b67c713..990b3daaa 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java @@ -50,10 +50,12 @@ public class DeclareDeclaration extends AjMethodDeclaration { sb.append("ajc$declare"); // Declares can choose to provide a piece of the name - to enable // them to be easily distinguised at weave time (e.g. see declare annotation) - String suffix = symbolicDeclare.getNameSuffix(); - if (suffix.length()!=0) { + if (symbolicDeclare!=null) { + String suffix = symbolicDeclare.getNameSuffix(); + if (suffix.length()!=0) { sb.append("_"); sb.append(suffix); + } } sb.append("_"); sb.append(counter++); -- 2.39.5