CharReader throws NullReferenceException
----------------------------------------

                 Key: LUCENENET-198
                 URL: https://issues.apache.org/jira/browse/LUCENENET-198
             Project: Lucene.Net
          Issue Type: Bug
         Environment: 2.9.0
            Reporter: Roger Chapman
            Priority: Blocker


CharReader passes null into the base CharStream Class however CharStream passes 
reader.BaseStream which causes the Exception.

Problem is that CharStream inherits  from a StreamReader and the CharReader 
(which inherits from CharStream)  excepts a TextReader in its constructor.

My solution was to change CharStream to inherit from TextReader instead. This 
means that the Methods "MarkSupported", "Mark" and "Reset"  are no longer 
usable, however I could not find any use of these methods. 

This effects CharFilter also.

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