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 20
20
import org .elasticsearch .logstashbridge .threadpool .ThreadPoolBridge ;
21
21
22
22
import java .util .Map ;
23
+ import java .util .Objects ;
23
24
import java .util .function .BiConsumer ;
24
25
25
26
/**
@@ -81,7 +82,10 @@ public String getDescription() {
81
82
public void execute (IngestDocument ingestDocument , BiConsumer <IngestDocument , Exception > handler ) {
82
83
AbstractExternal .this .execute (
83
84
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
+ )
85
89
);
86
90
}
87
91
You can’t perform that action at this time.
0 commit comments