You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "George Aroush (JIRA)" <ji...@apache.org> on 2007/03/08 06:10:24 UTC

[jira] Assigned: (LUCENENET-35) Tokenizer.Close should check if input is null

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

George Aroush reassigned LUCENENET-35:
--------------------------------------

    Assignee: George Aroush

> Tokenizer.Close should check if input is null
> ---------------------------------------------
>
>                 Key: LUCENENET-35
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-35
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Vincent DARON
>         Assigned To: George Aroush
>            Priority: Trivial
>
> Tokenizer default constructor create an instance with input set to null. So, the close method should check input before closing it.
> The other idea could be disallow that constructor...
> 		/// <summary>By default, closes the input Reader. </summary>
> 		public override void  Close()
> 		{
> +                        if(input != null)
> 	         		input.Close();
> 		}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.