Skip to content

Commit 85368ab

Browse files
committed
Yet more test fixes
1 parent 9dfe9cc commit 85368ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/ingest-common/src/main/java/org/opensearch/ingest/common/HierarchicalRoutingProcessor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public IngestDocument execute(IngestDocument document) throws Exception {
8080
return document;
8181
}
8282

83+
if (pathValue == null) {
84+
throw new IllegalArgumentException("field [" + pathField + "] doesn't exist");
85+
}
86+
8387
String path = pathValue.toString();
8488
if (Strings.isNullOrEmpty(path)) {
8589
if (ignoreMissing) {

0 commit comments

Comments
 (0)