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/10 17:18:09 UTC
[jira] Resolved: (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 resolved LUCENENET-35.
------------------------------------
Resolution: Fixed
Fixed for Apache Lucene.Net 2.0 build 004
> 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.