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
            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.

Reply via email to