[ https://issues.apache.org/jira/browse/LUCENE-5869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14086449#comment-14086449 ]
ASF subversion and git services commented on LUCENE-5869: --------------------------------------------------------- Commit 1615954 from [~rjernst] in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1615954 ] LUCENE-5869: Added restriction to positive values for maxExpansions in FuzzyQuery > FuzzyQuery should require positive maxExpansions > ------------------------------------------------ > > Key: LUCENE-5869 > URL: https://issues.apache.org/jira/browse/LUCENE-5869 > Project: Lucene - Core > Issue Type: Bug > Reporter: Ryan Ernst > Fix For: 5.0, 4.10 > > Attachments: LUCENE-5869.patch > > > FuzzyQuery currently only disallows negative values of {{maxExpansions}}. > However, passing {{0}} causes an NPE when the underlying {{TopTermsRewrite}} > does a {{peek()}} on an empty queue, which returns {{null}}, and then goes on > using it unknowingly. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org