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

Fix Document.getFieldables and others to never return null

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1, 2.2, 2.3, 2.3.1
    • 2.4
    • core/index
    • None
    • New

    Description

      Document.getFieldables (and other similar methods) returns null if there are no fields matching the name. We can avoid NPE in consumers of this API if instead we return an empty array.

      Spinoff from http://markmail.org/message/g2nzstmce4cnf3zj

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: