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

Missing Field null checks can result in aborted segments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.8.1, 4.9, 6.0
    • None
    • None
    • New

    Description

      This is bad because you lose other unrelated documents in IndexWriter's buffer.

      Simple example:

            BytesRef v = null; // somehow my app screwed up
            doc.add(new StoredField("foo", v));
      

      Attachments

        1. LUCENE-5662.patch
          7 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: