Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3816

FilteredDocIdSet does not handle a case where the inner set iterator is null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

        Attachments

        1. LUCENE-3816.patch
          3 kB
          Uwe Schindler
        2. LUCENE-3816.patch
          0.9 kB
          Shay Banon

          Activity

            People

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              kimchy Shay Banon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: