Skip to content

Commit

Permalink
handle npe for facets
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis95 committed Dec 10, 2021
1 parent 7983f27 commit 664405f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ else if (statRequest.getShardFacets() == 0) {
if (indexConfig.isHierarchicalFacet(label)) {
List<ZuliaQuery.FacetStats> topChildren = facets.getTopChildren(statRequest.getNumericField(), numOfFacets, label,
statRequest.getFacetField().getPathList().toArray(new String[0]));
statGroupBuilder.addAllFacetStats(topChildren);
if (topChildren != null) {
statGroupBuilder.addAllFacetStats(topChildren);
}
}
else {
List<ZuliaQuery.FacetStats> topChildren = facets.getTopChildren(statRequest.getNumericField(), numOfFacets, label,
Expand Down

0 comments on commit 664405f

Please sign in to comment.