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

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.0, 8.0
    • modules/highlighter
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: