From: aclement Date: Mon, 10 Mar 2008 18:09:16 +0000 (+0000) Subject: 193348: prevent NPE - might give peculiar entry in the problems view though X-Git-Tag: V1_6_0rc1~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a31b3dea01cbf925e6b22ef8789b3a3d86fd9160;p=aspectj.git 193348: prevent NPE - might give peculiar entry in the problems view though --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java index e3a48069c..6df284107 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java @@ -859,9 +859,7 @@ public class BcelWeaver implements IWeaver { */ private void raiseUnboundFormalError(String name, Pointcut userPointcut) { world.showMessage(IMessage.ERROR, - WeaverMessages.format(WeaverMessages.UNBOUND_FORMAL, - name), - userPointcut.getSourceContext().makeSourceLocation(userPointcut),null); + WeaverMessages.format(WeaverMessages.UNBOUND_FORMAL,name),userPointcut.getSourceLocation(),null); }