Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14587

NullPointerException with Clover PHP plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • cloverphp-plugin
    • Ubuntu 12.04
      Jenkins 1.475
      Clover PHP 0.3.2

      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

            sogabe sogabe
            geoffadams Geoff Adams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: