Lucene - Core
  1. Lucene - Core
  2. LUCENE-4567

WFSTCompletionLookup.lookup() NPE when empty fst

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      the fst Builder.finish() returns null when nothing is accepted, this then results in NPE in lookup(), see patch for extra nullchecks

        Activity

        Hide
        Michael McCandless added a comment -

        Thanks selckin!

        Show
        Michael McCandless added a comment - Thanks selckin!
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Michael McCandless
        http://svn.apache.org/viewvc?view=revision&revision=1411796

        LUCENE-4567: avoid NPE if no suggestions were built

        Show
        Commit Tag Bot added a comment - [trunk commit] Michael McCandless http://svn.apache.org/viewvc?view=revision&revision=1411796 LUCENE-4567 : avoid NPE if no suggestions were built
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Michael McCandless
        http://svn.apache.org/viewvc?view=revision&revision=1411798

        LUCENE-4567: avoid NPE if no suggestions were built

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Michael McCandless http://svn.apache.org/viewvc?view=revision&revision=1411798 LUCENE-4567 : avoid NPE if no suggestions were built
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Michael McCandless
        http://svn.apache.org/viewvc?view=revision&revision=1411798

        LUCENE-4567: avoid NPE if no suggestions were built

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Michael McCandless http://svn.apache.org/viewvc?view=revision&revision=1411798 LUCENE-4567 : avoid NPE if no suggestions were built

          People

          • Assignee:
            Michael McCandless
            Reporter:
            selckin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development