You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/02/26 11:07:20 UTC

[jira] [Commented] (LUCENE-5473) the contructor function of SynonymFilter can not report exception correctly

    [ https://issues.apache.org/jira/browse/LUCENE-5473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13912727#comment-13912727 ] 

ASF subversion and git services commented on LUCENE-5473:
---------------------------------------------------------

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

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

> the contructor function of SynonymFilter can not report exception correctly
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-5473
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5473
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: 4.6
>            Reporter: 帅广应
>            Assignee: Michael McCandless
>
> 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");



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org