]> source.dussan.org Git - aspectj.git/commitdiff
fixing a problem that services in the debugger when toString fails NPE!
authoraclement <aclement>
Thu, 3 Nov 2005 14:23:10 +0000 (14:23 +0000)
committeraclement <aclement>
Thu, 3 Nov 2005 14:23:10 +0000 (14:23 +0000)
weaver/src/org/aspectj/weaver/ResolvedPointcutDefinition.java

index ebcd5981692feb6512060a6619d2423c6161f91e..8183ceb2400366f726ee21628daae87293d40672 100644 (file)
@@ -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?"<nullDeclaringType>":getDeclaringType().getName()));
                buf.append(".");
                buf.append(getName());
                buf.append("(");