From: aclement Date: Thu, 10 Mar 2005 20:35:44 +0000 (+0000) Subject: Declare annotation: cope with null symbolic declare X-Git-Tag: V1_5_0M2~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7dc7cdd9bdd7ca902785e4037c6893fe1c5f1418;p=aspectj.git Declare annotation: cope with null symbolic declare --- 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++);