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

original/default Highlighter's constructor should throw if passed null args

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0, master (8.0)
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The default/original Highlighter has a constructor that takes several parameters, including an Encoder. If per chance these are null, we'll throw an exception later at highlight time but it's nicer to get an exception eagerly. It will also avoid the LUCENE-6979 trap.

        Attachments

        1. LUCENE-7901.patch
          2 kB
          Jason Gerlowski
        2. LUCENE-7901.patch
          5 kB
          David Smiley

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dsmiley David Smiley
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: