lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Busch (JIRA)" <>
Subject [jira] Commented: (LUCENE-781) NPE in MultiReader.isCurrent() and getVersion()
Date Wed, 25 Jul 2007 18:53:31 GMT


Michael Busch commented on LUCENE-781:

If there are no objections against separating MultiReader into two classes
I would like to commit my patch in a day or two. I think the javadocs look 
fine, the class MultiSegmentReader does not appear there.

One thing I'm not sure about: Should MultiReader throw an 
UnsupportedOperationException or simply return false when isOptimized() is 

> NPE in MultiReader.isCurrent() and getVersion()
> -----------------------------------------------
>                 Key: LUCENE-781
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Daniel Naber
>            Assignee: Michael Busch
>         Attachments: lucene-781.patch, multireader.diff, multireader.diff, multireader_test.diff,
> I'm attaching a fix for the NPE in MultiReader.isCurrent() plus a testcase. For getVersion(),
we should throw a better exception that NPE. I will commit unless someone objects or has a
better idea.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message