]> source.dussan.org Git - aspectj.git/commitdiff
Declare annotation: cope with null symbolic declare
authoraclement <aclement>
Thu, 10 Mar 2005 20:35:44 +0000 (20:35 +0000)
committeraclement <aclement>
Thu, 10 Mar 2005 20:35:44 +0000 (20:35 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java

index 99b67c713fda101e98078bc5790fead30cbb946d..990b3daaa4134b319c8e50b8bb50303b954a6daa 100644 (file)
@@ -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++);