FasterXML / jackson-dataformat-xml

Extension for Jackson JSON processor that adds support for serializing POJOs as XML (and deserializing from XML) as an alternative to JSON
Apache License 2.0
567 stars 221 forks source link

Fix handling of null values in string Arrays and Collections #585

Closed mbladel closed 1 year ago

mbladel commented 1 year ago

Possible fix for https://github.com/FasterXML/jackson-dataformat-xml/issues/584.

As a note, empty and null string values in Maps were correctly handled even before the change (although requiring the map itself to be wrapped in a POJO). I included a test anyways.

cowtowncoder commented 1 year ago

Since I am pushing 2.15.0-rc1 soon, I will actually merge this & add comment. We shoyld be able to get some validation on safety with rc1, more so than waiting until rc2 or 2.15.0 final.

Additional tests would be great but can be another PR.