Skip to content

Commit f406e23

Browse files
committed
Minor protection against nulls; triggered by databind
1 parent 4f716e2 commit f406e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/dataformat/xml/deser/WrapperHandlingDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected final void _configureParser(JsonParser p) throws IOException
154154
while (p instanceof JsonParserDelegate) {
155155
p = ((JsonParserDelegate) p).delegate();
156156
}
157-
if (p instanceof FromXmlParser) {
157+
if ((p instanceof FromXmlParser) && (_namesToWrap != null)) {
158158
// 03-May-2021, tatu: as per [dataformat-xml#469] there are special
159159
// cases where we get String token to represent XML empty element.
160160
// If so, need to refrain from adding wrapping as that would

0 commit comments

Comments
 (0)