]> source.dussan.org Git - aspectj.git/commitdiff
193348: prevent NPE - might give peculiar entry in the problems view though
authoraclement <aclement>
Mon, 10 Mar 2008 18:09:16 +0000 (18:09 +0000)
committeraclement <aclement>
Mon, 10 Mar 2008 18:09:16 +0000 (18:09 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

index e3a48069c5af507b83abea9de9eb5ff2c82fc155..6df284107054643d94e5b9fe2d3f4fee994893b5 100644 (file)
@@ -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);
        }