[ 
https://issues.apache.org/jira/browse/SOLR-11231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16243844#comment-16243844
 ] 

Timo Hund commented on SOLR-11231:
----------------------------------

Is there anything that i can to to support this? This issue currently prevents 
us from using the language detection because we can not quarante that every 
field is filled. Even setting default="" on a string field did not help to at 
least fill it with an empty string.

> NullPointerException in TikaLanguageIdentifierUpdateProcessor.getExpectedSize 
> when performing language identification using unset fields
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-11231
>                 URL: https://issues.apache.org/jira/browse/SOLR-11231
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - LangId
>    Affects Versions: 6.6, 7.0
>            Reporter: Chris Beer
>            Priority: Minor
>
> If I configure the TikaLanguageIdentifierUpdateProcessorFactory that includes 
> a `langid.fl` that isn't set on the document, I get a NPE:
> {{java.lang.NullPointerException
> at 
> org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessor.getExpectedSize(TikaLanguageIdentifierUpdateProcessor.java:116)
> at 
> org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessor.concatFields(TikaLanguageIdentifierUpdateProcessor.java:76)
> at 
> org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessor.detectLanguage(TikaLanguageIdentifierUpdateProcessor.java:53)
> at 
> org.apache.solr.update.processor.LanguageIdentifierUpdateProcessor.process(LanguageIdentifierUpdateProcessor.java:219)}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to