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

TermsFilter.getDocIdSet(context) NPE on missing field

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA
    • modules/other
    • None
    • New, Patch Available

    Description

      If the context does not contain the field for a term when calling TermsFilter.getDocIdSet(AtomicReaderContext context) then a NullPointerException is thrown due to not checking for null Terms before getting iterator.

      Attachments

        1. LUCENE-3522.patch
          3 kB
          Dan Climan

        Activity

          People

            mikemccand Michael McCandless
            aberdeen61 Dan Climan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: