File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml/deser Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -221,5 +221,11 @@ Joo Hyuk Kim (JooHyukKim@github)
221
221
PJ Fanning (pjfanning@github)
222
222
223
223
* Contributed fix for #533 : (Android) java.lang.NoClassDefFoundError: Failed resolution
224
- of: Ljavax/xml/stream/XMLInputFactory
224
+ of: Ljavax/xml/stream/XMLInputFactory
225
+ (2.15.0 )
226
+
227
+ Marco Belladelli (mbladel@github)
228
+
229
+ * Contributed fix for #584 : Deserialization of `null` String values in Arrays / `Collection`s
230
+ not working as expected
225
231
(2.15.0 )
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ Project: jackson-dataformat-xml
19
19
for XML pretty-printing
20
20
(requested by @koalalam)
21
21
(contributed by Joo Hyuk K)
22
+ #584 : Deserialization of `null` String values in Arrays / `Collection`s
23
+ not working as expected
24
+ (fix contributed by Marco B)
22
25
23
26
2.14.2 (28 -Jan-2023 )
24
27
Original file line number Diff line number Diff line change @@ -933,6 +933,11 @@ public String nextTextValue() throws IOException
933
933
case XmlTokenStream .XML_END_ELEMENT :
934
934
if (_mayBeLeaf ) {
935
935
_mayBeLeaf = false ;
936
+ // 18-Mar-2023, tatu: [dataformat-xml#584 / #585] in 2.14 and before
937
+ // returned VALUE_STRING on assumption we never expose `null`s if
938
+ // asked text value -- but that seems incorrect. Hoping this won't
939
+ // break anything in 2.15+
940
+
936
941
_currToken = JsonToken .VALUE_NULL ;
937
942
// 13-May-2020, tatu: [dataformat-xml#397]: advance `index`
938
943
_parsingContext .valueStarted ();
You can’t perform that action at this time.
0 commit comments