[
https://issues.apache.org/jira/browse/SOLR-7765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628046#comment-14628046
]
Konstantin Gribov commented on SOLR-7765:
-----------------------------------------
I am not familiar with lucene-solr test suite. It seems that {{TokenizerChain}}
was created standard way from schema (via {{FieldTypePluginLoader}}, line
403@lucene_solr_5_2_1), so it was created with
{code:java}
new TokenizerChain(charFilters.toArray(new
CharFilterFactory[charFilters.size()]), tokenizers.get(0), filters.toArray(new
TokenFilterFactory[filters.size()]));
{code}
which is three-arg constructor with non-null first argument (it will be empty
array when {{charFilters}} is empty).
I'll add a test to my PR.
> TokenizerChain without char filters cause NPE in luke request handler
> ---------------------------------------------------------------------
>
> Key: SOLR-7765
> URL: https://issues.apache.org/jira/browse/SOLR-7765
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.2.1
> Reporter: Konstantin Gribov
> Assignee: Hoss Man
> Priority: Minor
> Attachments: SOLR-7765.patch
>
>
> {{TokenizerChain}} created using 2-arg constructor has {{null}} in
> {{charFilters}}, so {{LukeRequestHandler}} throws NPE on iterating it.
> Will create PR in a couple of minutes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]