]> source.dussan.org Git - aspectj.git/commitdiff
NPE guard
authoraclement <aclement>
Mon, 12 Jan 2009 20:25:45 +0000 (20:25 +0000)
committeraclement <aclement>
Mon, 12 Jan 2009 20:25:45 +0000 (20:25 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java

index f51146f63b2102e8e565ba6fb9ebf4170026ee59..8a61a32fe147b8a84fc2a9ca39ceaf939cfa60e9 100644 (file)
@@ -343,7 +343,11 @@ public class MemberImpl implements Member {
                StringBuffer buf = new StringBuffer();
                buf.append(returnType.getName());
                buf.append(' ');
-               buf.append(declaringType.getName());
+               if (declaringType==null) {
+                       buf.append("<NULL>");
+               } else {
+                       buf.append(declaringType.getName());
+               }
                buf.append('.');
                buf.append(name);
                if (kind != FIELD) {