lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5117) DISI.iterator() should never return null.
Date Tue, 16 Jul 2013 15:50:49 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-5117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709861#comment-13709861
] 

Michael McCandless commented on LUCENE-5117:
--------------------------------------------

+1
                
> DISI.iterator() should never return null.
> -----------------------------------------
>
>                 Key: LUCENE-5117
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5117
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> If you have a Filter, you have to check for null twice: Filter.getDocIDSet() can return
a null DocIDSet, and then DocIDSet.iterator() can return a null iterator.
> There is no reason for this: I think iterator() should never return null (consistent
with terms/postings apis).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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