Skip to content

DISI.iterator() should never return null. [LUCENE-5117] #6181

@asfimport

Description

@asfimport

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).


Migrated from LUCENE-5117 by Robert Muir (@rmuir), updated Oct 23 2014

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions