You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Simon Svensson (JIRA)" <ji...@apache.org> on 2019/01/21 07:25:00 UTC

[jira] [Closed] (LUCENENET-605) NullReference Exception is thrown if we create a term with null searchterm

     [ https://issues.apache.org/jira/browse/LUCENENET-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Svensson closed LUCENENET-605.
------------------------------------
    Resolution: Won't Fix

> NullReference Exception is thrown if we create a term with null searchterm
> --------------------------------------------------------------------------
>
>                 Key: LUCENENET-605
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-605
>             Project: Lucene.Net
>          Issue Type: Bug
>    Affects Versions: Lucene.Net 4.8.0
>            Reporter: Muhammad Waleed
>            Priority: Major
>
> if you try to create a term by specifying fieldname and null as searchterm, NullReference Exception is thrown, e.g.
> *Term term = new Term("ID", null);*
> However it should throw proper error message like parameter name is null or something likewise. 
> Null Reference exception shows that something is not properly handled underneath,



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)