laeubi commented on code in PR #11563:
URL: https://github.com/apache/maven/pull/11563#discussion_r2618393008
##########
src/mdo/model-v3.vm:
##########
@@ -204,7 +204,7 @@ public class ${class.name}
}
#elseif( $field.type == "java.util.Properties" )
LinkedHashMap<String, String> map = new LinkedHashMap<>();
- ${field.name}.forEach((key, value) -> map.put(key.toString(),
value.toString()));
+ ${field.name}.forEach((key, value) -> map.put(key.toString(), value !=
null ? value.toString() : null));
Review Comment:
Another option would be to simply assume `null` means remove property, I
have no real use case but want to prevent NPE :-)
--
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]