lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Chapman (JIRA)" <>
Subject [jira] Created: (LUCENENET-198) CharReader throws NullReferenceException
Date Thu, 29 Oct 2009 10:26:59 GMT
CharReader throws NullReferenceException

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

View raw message