From cf5912ec26eb7dc2e543dc9f70b1e1499b02f3da Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Wed, 6 Nov 2024 17:17:23 +0000 Subject: [PATCH] another NPE in test --- .../java/org/elasticsearch/index/engine/InternalEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java b/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java index b7502cb0363c3..214b6bc14c65c 100644 --- a/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java +++ b/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java @@ -2756,9 +2756,9 @@ private IndexWriterConfig getIndexWriterConfig() { private boolean useSyntheticSourceForRecovery() { return engineConfig.getMapperService() != null + && engineConfig.getMapperService().mappingLookup() != null && engineConfig.getMapperService().mappingLookup().isSourceSynthetic() && engineConfig.getIndexSettings().isRecoverySourceSyntheticEnabled(); - } /** A listener that warms the segments if needed when acquiring a new reader */