[
https://issues.apache.org/jira/browse/LUCENE-5117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14181710#comment-14181710
]
Robert Muir commented on LUCENE-5117:
-------------------------------------
not today. because then there would be no way for it to represent this case.
DISI is different, because it the docidset itself could be null so it loses
nothing if we try to simplify this.
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]