File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
libs/logstash-bridge/src/main/java/org/elasticsearch/logstashbridge/ingest Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2020import org .elasticsearch .logstashbridge .threadpool .ThreadPoolBridge ;
2121
2222import java .util .Map ;
23+ import java .util .Objects ;
2324import java .util .function .BiConsumer ;
2425
2526/**
@@ -81,7 +82,10 @@ public String getDescription() {
8182 public void execute (IngestDocument ingestDocument , BiConsumer <IngestDocument , Exception > handler ) {
8283 AbstractExternal .this .execute (
8384 IngestDocumentBridge .fromInternalNullable (ingestDocument ),
84- (idb , e ) -> handler .accept (idb .toInternal (), e )
85+ (ingestDocumentBridge , e ) -> handler .accept (
86+ Objects .isNull (ingestDocumentBridge ) ? null : ingestDocumentBridge .toInternal (),
87+ e
88+ )
8589 );
8690 }
8791
You can’t perform that action at this time.
0 commit comments