elharo opened a new issue, #62:
URL: https://github.com/apache/maven-mapping/issues/62

   ## Description
   
   `MappingUtils.evaluateFileNameMapping(String expression, Artifact artifact)` 
does not validate that the `artifact` parameter is non-null. If a caller passes 
`null`, a `NullPointerException` is thrown at lines 91-95 when calling 
`artifact.getArtifactHandler()` and `artifact.getClassifier()`.
   
   ## Expected behavior
   
   A clear `IllegalArgumentException` (or similar) should be thrown with a 
descriptive message, rather than an opaque NPE deep in the call stack.
   
   ## Relevant code
   
   `src/main/java/org/apache/maven/shared/mapping/MappingUtils.java:88-98`


-- 
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