NPE in CharsRefBuilder

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

NPE in CharsRefBuilder

Markus Jelsma-2

I made a ConditionalTokenFilter filter and factory. Its Lucene based unit tests work really well, and i can see it is doing something, queries are differently analyzed based on some condition.

But when debugging through the GUI i get the following:

2019-04-15 12:37:42.219 ERROR (qtp815674463-213) [c:sitesearch s:shard2 r:core_node9 x:sitesearch_shard2_replica_t6] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException
        at org.apache.lucene.util.CharsRefBuilder.copyUTF8Bytes(
        at org.apache.solr.schema.FieldType.indexedToReadable(
        at org.apache.solr.handler.AnalysisRequestHandlerBase.convertTokensToNamedLists(
        at org.apache.solr.handler.AnalysisRequestHandlerBase.analyzeValue(
        at org.apache.solr.handler.FieldAnalysisRequestHandler.analyzeValues(
        at org.apache.solr.handler.FieldAnalysisRequestHandler.handleAnalysisRequest(

So, although the NPE is in Lucene, is this a bug for the Solr Jira, or for Lucene?

Many thanks,