elharo opened a new pull request, #1654:
URL: https://github.com/apache/maven-dependency-plugin/pull/1654

   `PropertiesMojo` sets project properties to artifact file paths. 
`artifact.getFile()` can return `null` for unresolved or POM-packaged 
artifacts. `Properties.setProperty()` throws NPE on null values, so calling 
`artifact.getFile().getAbsolutePath()` with a null file crashes the build with 
an unhelpful stack trace.
   
   Instead, throw `MojoExecutionException` with a clear diagnostic message at 
both potential NPE sites:
   - `project.getArtifacts()` loop (line 118)
   - `extraArtifacts` resolution path (line 136)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to