Skip to content

Commit 08b99cd

Browse files
committed
Fix to align with jackson-databind changes
1 parent 743da56 commit 08b99cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/tools/jackson/dataformat/xml/ser/XmlSerializationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ protected void _serializeUnwrappedObjectNode(ToXmlGenerator xgen, Object value,
272272
ValueSerializer<Object> ser) throws JacksonException
273273
{
274274
ObjectNode root = (ObjectNode) value;
275-
Map.Entry<String, JsonNode> entry = root.fields().next();
275+
Map.Entry<String, JsonNode> entry = root.properties().iterator().next();
276276
final JsonNode newRoot = entry.getValue();
277277

278278
// No namespace associated with JsonNode:

0 commit comments

Comments
 (0)