Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5473

the contructor function of SynonymFilter can not report exception correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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");

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: