java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I'm attempting to run Clover reports from my PHPUnit test logs, and I keep getting this error. I noticed a similar error had already been fixed (the one relating to empty HTML directory settings), but I think this one is different, judging from the stack trace. I have a coverage XML file and a valid directory for HTML output. The same error occurs whether or not HTML reports are enabled or not. Publishing Clover coverage report... Publishing Clover XML report... Publishing Clover coverage results... ERROR: Publisher org.jenkinsci.plugins.cloverphp.CloverPublisher aborted due to exception java.lang.NullPointerException at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.trimPaths(CloverCoverageParser.java:29) at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.parse(CloverCoverageParser.java:50) at org.jenkinsci.plugins.cloverphp.CloverPublisher.processCloverXml(CloverPublisher.java:216) at org.jenkinsci.plugins.cloverphp.CloverPublisher.perform(CloverPublisher.java:189) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Finished: FAILURE
    via by Geoff Adams,
  • I'm attempting to run Clover reports from my PHPUnit test logs, and I keep getting this error. I noticed a similar error had already been fixed (the one relating to empty HTML directory settings), but I think this one is different, judging from the stack trace. I have a coverage XML file and a valid directory for HTML output. The same error occurs whether or not HTML reports are enabled or not. Publishing Clover coverage report... Publishing Clover XML report... Publishing Clover coverage results... ERROR: Publisher org.jenkinsci.plugins.cloverphp.CloverPublisher aborted due to exception java.lang.NullPointerException at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.trimPaths(CloverCoverageParser.java:29) at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.parse(CloverCoverageParser.java:50) at org.jenkinsci.plugins.cloverphp.CloverPublisher.processCloverXml(CloverPublisher.java:216) at org.jenkinsci.plugins.cloverphp.CloverPublisher.perform(CloverPublisher.java:189) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Finished: FAILURE
    via by Geoff Adams,
    • java.lang.NullPointerException at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.trimPaths(CloverCoverageParser.java:29) at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.parse(CloverCoverageParser.java:50) at org.jenkinsci.plugins.cloverphp.CloverPublisher.processCloverXml(CloverPublisher.java:216) at org.jenkinsci.plugins.cloverphp.CloverPublisher.perform(CloverPublisher.java:189) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
    No Bugmate found.