You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by hi...@accenture.com on 2005/07/06 14:37:07 UTC

[ant-contrib] AntPerformanceListener problem:NullPointerException

Hello guys,
I am experiecing the following problem:
i am runing my ant scripts with the following option:
 -listener net.sf.antcontrib.perf.AntPerformanceListener.
When running my script with the default target everything is fine.
When running my script with some targets passed on command line i get the following error message:

BUILD SUCCESSFUL
Total time: 0 seconds
java.lang.NullPointerException
        at net.sf.antcontrib.perf.AntPerformanceListener.buildFinished(AntPerformanceListener.java:106)
        at org.apache.tools.ant.Project.fireBuildFinished(Project.java:1848)
        at org.apache.tools.ant.Main.runBuild(Main.java:688)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

The line incriminated in AntPerformanceListener.java is:
 if ( target.getProject().getName() != null )


Thanks for any help/clue!


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.