lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shay Banon (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-3816) FilteredDocIdSet does not handle a case where the inner set iterator is null
Date Tue, 21 Feb 2012 23:58:48 GMT
FilteredDocIdSet does not handle a case where the inner set iterator is null
----------------------------------------------------------------------------

                 Key: LUCENE-3816
                 URL: https://issues.apache.org/jira/browse/LUCENE-3816
             Project: Lucene - Java
          Issue Type: Bug
          Components: core/search
    Affects Versions: 3.5
            Reporter: Shay Banon
         Attachments: LUCENE-3816.patch

DocIdSet#iterator is allowed to return null, when used in FilteredDocIdSet, if null is returned
from the inner set, the FilteredDocIdSetIterator fails since it does not allow for nulls to
be passed to it.

The fix is simple, return null in FilteredDocIdSet in the iterator method is the iterator
is null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message