Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
Signed-off-by: Sandesh Kumar <[email protected]>
  • Loading branch information
sandeshkr419 committed Sep 5, 2024
1 parent c3f156e commit f6b0f3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,8 @@ private void parseSource(DefaultSearchContext context, SearchSourceBuilder sourc
context.setProfilers(new Profilers(context.searcher(), context.shouldUseConcurrentSearch()));
}

if (this.indicesService.getCompositeIndexSettings().isStarTreeIndexCreationEnabled()
if (this.indicesService.getCompositeIndexSettings() != null
&& this.indicesService.getCompositeIndexSettings().isStarTreeIndexCreationEnabled()
&& StarTreeQueryHelper.isStarTreeSupported(context, source.trackTotalHitsUpTo() != null)) {
try {
OriginalOrStarTreeQuery parsedQuery = StarTreeQueryHelper.getOriginalOrStarTreeQuery(context, source);
Expand Down

0 comments on commit f6b0f3b

Please sign in to comment.