We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f716e2 commit f406e23Copy full SHA for f406e23
src/main/java/com/fasterxml/jackson/dataformat/xml/deser/WrapperHandlingDeserializer.java
@@ -154,7 +154,7 @@ protected final void _configureParser(JsonParser p) throws IOException
154
while (p instanceof JsonParserDelegate) {
155
p = ((JsonParserDelegate) p).delegate();
156
}
157
- if (p instanceof FromXmlParser) {
+ if ((p instanceof FromXmlParser) && (_namesToWrap != null)) {
158
// 03-May-2021, tatu: as per [dataformat-xml#469] there are special
159
// cases where we get String token to represent XML empty element.
160
// If so, need to refrain from adding wrapping as that would
0 commit comments