NPE if dashboard called on parent project
-----------------------------------------

                 Key: MOJO-749
                 URL: http://jira.codehaus.org/browse/MOJO-749
             Project: Mojo
          Issue Type: Bug
          Components: dashboard
            Reporter: Jörg Hohwiller


On a project where I tried dashboard 1.0-SNAPSHOT today I continously got an 
NPE.
The problem only showed up, when dashboard (via site or site:stage) was called 
on the parent project.
It worked well on the individual modules. I do not know if that matters but the 
project-layout was NOT a tree
but flat. From the stracktrace, I can see that 
DefaultArtifactVersion.parseVersion was called with a "version" argument of 
null:

java.lang.NullPointerException
at 
org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion(DefaultArtifactVersion.java:148)
at 
org.apache.maven.artifact.versioning.DefaultArtifactVersion.<init>(DefaultArtifactVersion.java:42)
at 
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCoberturaDataFile(DashBoardUtils.java:841)
at 
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCoberturaReport(DashBoardUtils.java:342)
at 
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardReportBean(DashBoardUtils.java:273)
at 
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardReportBean(DashBoardUtils.java:235)
at 
org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(DashBoardReportMojo.java:143)
at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to