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 ec0ad1ed79f0d..b7502cb0363c3 100644 --- a/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java +++ b/server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java @@ -2756,8 +2756,8 @@ private IndexWriterConfig getIndexWriterConfig() { private boolean useSyntheticSourceForRecovery() { return engineConfig.getMapperService() != null - && engineConfig.getMapperService().mappingLookup().isSourceSynthetic() - && engineConfig.getIndexSettings().isRecoverySourceSyntheticEnabled(); + && engineConfig.getMapperService().mappingLookup().isSourceSynthetic() + && engineConfig.getIndexSettings().isRecoverySourceSyntheticEnabled(); }