From: aclement Date: Mon, 12 Jan 2009 20:25:45 +0000 (+0000) Subject: NPE guard X-Git-Tag: pre268419~229 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ed8f0b1e0864c1d6d244c413a89a4a991d88637;p=aspectj.git NPE guard --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java b/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java index f51146f63..8a61a32fe 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java @@ -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(""); + } else { + buf.append(declaringType.getName()); + } buf.append('.'); buf.append(name); if (kind != FIELD) {