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

   In `src/main/java/org/apache/maven/shared/filtering/Resource.java`, lines 
31–36:
   
   All six fields default to `null` rather than sensible empty values. The 
`getExtension()` method in `DefaultMavenResourcesFiltering` handles the edge 
case where `resource.getDirectory()` might be null (line 179), but every 
consumer must null-check these fields. For example, `Resource.getIncludes()` 
returns `null` by default, not an empty list, requiring null checks at all call 
sites like `DefaultMavenResourcesFiltering.setupScanner()` at line 410.


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