Skip to content

Commit

Permalink
HSEARCH-1968 Add some comments and avoid the same mistake in another …
Browse files Browse the repository at this point in the history
…usage of the same Lucene method
  • Loading branch information
Sanne committed Aug 18, 2015
1 parent ed8c8cb commit cb3a507
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -414,8 +414,9 @@ private ArrayList<Facet> updateStringFacets(DiscreteFacetRequest facetRequest) t
}

int maxFacetCount = facetRequest.getMaxNumberOfFacets() < 0 ? DEFAULT_FACET_RETRIEVAL_SIZE : facetRequest.getMaxNumberOfFacets();
FacetResult facetResult;
final FacetResult facetResult;
try {
// This might return null!
facetResult = facetCounts.getTopChildren( maxFacetCount, facetRequest.getFieldName() );
}
catch (IllegalArgumentException e) {
Expand Down

0 comments on commit cb3a507

Please sign in to comment.