Skip to content

Commit a18d776

Browse files
committed
Fix
1 parent 9a9354e commit a18d776

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/elasticsearch/ingest/ESONSource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
396396
for (Entry<String, Type> entry : map.entrySet()) {
397397
builder.field(entry.getKey());
398398
switch (entry.getValue()) {
399+
case null -> builder.nullValue();
399400
case ESONObject o -> o.toXContent(builder, params);
400401
case ESONArray a -> a.toXContent(builder, params);
401402
case FixedValue v -> v.writeToXContent(builder, objectValues.get());

0 commit comments

Comments
 (0)