From: aclement Date: Thu, 3 Nov 2005 14:23:10 +0000 (+0000) Subject: fixing a problem that services in the debugger when toString fails NPE! X-Git-Tag: V1_5_0RC1~269 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e72b0518a145edfec0dafd3a56e183b5cad2caae;p=aspectj.git fixing a problem that services in the debugger when toString fails NPE! --- diff --git a/weaver/src/org/aspectj/weaver/ResolvedPointcutDefinition.java b/weaver/src/org/aspectj/weaver/ResolvedPointcutDefinition.java index ebcd59816..8183ceb24 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedPointcutDefinition.java +++ b/weaver/src/org/aspectj/weaver/ResolvedPointcutDefinition.java @@ -87,7 +87,7 @@ public class ResolvedPointcutDefinition extends ResolvedMemberImpl { public String toString() { StringBuffer buf = new StringBuffer(); buf.append("pointcut "); - buf.append(getDeclaringType().getName()); + buf.append((getDeclaringType()==null?"":getDeclaringType().getName())); buf.append("."); buf.append(getName()); buf.append("(");