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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.3, 6.0
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      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
          Hoss Man
        2. SOLR-7765.patch
          9 kB
          Hoss Man
        3. SOLR-7765.patch
          17 kB
          Hoss Man

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              grossws Konstantin Gribov
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: