You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/07/26 17:06:57 UTC

[jira] Closed: (MNG-648) NPE in ArtifactUtils#artifactMapByVersionlessId(Collection artifacts)

     [ http://jira.codehaus.org/browse/MNG-648?page=all ]
     
John Casey closed MNG-648:
--------------------------

    Resolution: Fixed

if artifact list passed in is null, will return an empty Map instance. This is for convenience, so we don't have to do additional null checks, as in the case of plugin parameterization.

> NPE in ArtifactUtils#artifactMapByVersionlessId(Collection artifacts)
> ---------------------------------------------------------------------
>
>          Key: MNG-648
>          URL: http://jira.codehaus.org/browse/MNG-648
>      Project: Maven 2
>         Type: Bug
>   Components: maven-artifact
>     Versions: 2.0-beta-1
>     Reporter: Vincent Siveton

>
>
> Executing the following calls throws an NPE:
> #components\maven-core>m2 site:site
> Same thing for the test case:
> #components\maven-plugins\maven-site-plugin\src\test\projects\site-plugin-test1>m2 site:site
> Stack trace:
> java.lang.NullPointerException
>         at org.apache.maven.artifact.ArtifactUtils.artifactMapByVersionlessId(ArtifactUtils.java:57)
>         at org.apache.maven.project.MavenProject.getReportArtifactMap(MavenProject.java:863)
>         at org.apache.maven.plugin.DefaultPluginManager.getReports(DefaultPluginManager.java:410)
>         at org.apache.maven.doxia.DoxiaMojo.getReports(DoxiaMojo.java:913)
>         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:213)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:368)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:172)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:153)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:136)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:106)
>         at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:294)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:202)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:267)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org