fix possible NPE introduced in #60591

This commit is contained in:
Hendrik Muhs 2020-08-03 16:40:11 +02:00
parent cfab3bccab
commit 1e01832b0c
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ public class CompositeBucketsChangeCollector implements ChangeCollector {
entry.getKey(),
entry.getValue().getMissingBucket(),
((DateHistogramGroupSource) entry.getValue()).getRounding(),
entry.getValue().getField().equals(synchronizationField)
entry.getValue().getField() != null && entry.getValue().getField().equals(synchronizationField)
)
);
break;