Lucene - Core
  1. Lucene - Core
  2. LUCENE-5473

the contructor function of SynonymFilter can not report exception correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.7.1, 4.8, 6.0
    • Component/s: modules/analysis
    • Labels:
      None

      Description

      when use code
      SynonymFilter filter=new SynonymFilter(new WhitespaceTokenizer(Version.LUCENE_42, new StringReader("aa bb")), new SynonymMap.Builder(true).build(), true);
      create a filter,it throw NullPointerException but not IllegalArgumentException("fst must be non-null");

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1571984 from Michael McCandless in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1571984 ]

        LUCENE-5473: throw IAE not NPE when synonym map was empty

        Show
        ASF subversion and git services added a comment - Commit 1571984 from Michael McCandless in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1571984 ] LUCENE-5473 : throw IAE not NPE when synonym map was empty
        Hide
        ASF subversion and git services added a comment -

        Commit 1571986 from Michael McCandless in branch 'dev/trunk'
        [ https://svn.apache.org/r1571986 ]

        LUCENE-5473: throw IAE not NPE when synonym map was empty

        Show
        ASF subversion and git services added a comment - Commit 1571986 from Michael McCandless in branch 'dev/trunk' [ https://svn.apache.org/r1571986 ] LUCENE-5473 : throw IAE not NPE when synonym map was empty
        Hide
        Michael McCandless added a comment -

        Thanks 帅广应!

        Show
        Michael McCandless added a comment - Thanks 帅广应!
        Hide
        Robert Muir added a comment -

        Reopening for 4.7.1 backport

        Show
        Robert Muir added a comment - Reopening for 4.7.1 backport
        Hide
        ASF subversion and git services added a comment -

        Commit 1578517 from Robert Muir in branch 'dev/branches/lucene_solr_4_7'
        [ https://svn.apache.org/r1578517 ]

        LUCENE-5473: the contructor function of SynonymFilter can not report exception correctly

        Show
        ASF subversion and git services added a comment - Commit 1578517 from Robert Muir in branch 'dev/branches/lucene_solr_4_7' [ https://svn.apache.org/r1578517 ] LUCENE-5473 : the contructor function of SynonymFilter can not report exception correctly
        Hide
        Steve Rowe added a comment -

        Bulk close 4.7.1 issues

        Show
        Steve Rowe added a comment - Bulk close 4.7.1 issues

          People

          • Assignee:
            Michael McCandless
            Reporter:
            帅广应
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development