Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Sep 25, 2024
1 parent 6bd4d67 commit 348352a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ boolean newIndexHasSyntheticSourceUsage(
tmpIndexMetadata.settings(finalResolvedSettings);
// Create MapperService just to extract keyword dimension fields:
try (var mapperService = mapperServiceFactory.apply(tmpIndexMetadata.build())) {
if (combinedTemplateMappings.isEmpty()) {
if (combinedTemplateMappings == null || combinedTemplateMappings.isEmpty()) {
// this can happen when creating a normal index that doesn't match any template and without mapping.
combinedTemplateMappings = List.of(new CompressedXContent("{}"));
}
Expand Down

0 comments on commit 348352a

Please sign in to comment.