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

Remove reader.fields() == null checks everywhere

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • None
    • None
    • New

    Description

      I don't know how this got this way, but it never returns null. SegmentReader even asserts this. But the api requires consumers to do a bunch of useless null checks. This is a bug.

      Attachments

        1. LUCENE-6068.patch
          28 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: