Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7765

TokenizerChain methods may return null depending on how constructor is called -- causes NPE in luke request handler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.1
    • 5.3, 6.0
    • None
    • None

    Description

      TokenizerChain created using 2-arg constructor has null in charFilters, so LukeRequestHandler throws NPE on iterating it.

      TokenizerChain constructor's should be hardened to do explicit null checks, throwing early NPE where appropriate (tokenizer factory), or initializing internal arrays to have 0 length when optional (factories for char filters and token filters)

      Attachments

        1. SOLR-7765.patch
          1 kB
          Chris M. Hostetter
        2. SOLR-7765.patch
          9 kB
          Chris M. Hostetter
        3. SOLR-7765.patch
          17 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            grossws Konstantin Gribov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: