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 419de57 commit be2adc8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,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 be2adc8

Please sign in to comment.