Skip to content

Commit bfe2e49

Browse files
committed
FasterXML#2442: Use ArrayNode#add in ArrayNode#addAll to handle raw null adds.
1 parent 8f0d07d commit bfe2e49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/fasterxml/jackson/databind/node/ArrayNode.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ public ArrayNode addAll(ArrayNode other)
316316
*/
317317
public ArrayNode addAll(Collection<? extends JsonNode> nodes)
318318
{
319-
_children.addAll(nodes);
319+
for (JsonNode node : nodes) {
320+
add(node);
321+
}
320322
return this;
321323
}
322324

0 commit comments

Comments
 (0)