[
https://issues.apache.org/jira/browse/SOLR-7765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14638830#comment-14638830
]
ASF GitHub Bot commented on SOLR-7765:
--------------------------------------
Github user grossws closed the pull request at:
https://github.com/apache/lucene-solr/pull/185
> TokenizerChain methods may return null depending on how constructor is called
> -- causes 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
> Fix For: 5.3, Trunk
>
> Attachments: SOLR-7765.patch, SOLR-7765.patch, SOLR-7765.patch
>
>
> {{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)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]