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
Hello,

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(CharsRefBuilder.java:120)
        at org.apache.solr.schema.FieldType.indexedToReadable(FieldType.java:387)
        at org.apache.solr.handler.AnalysisRequestHandlerBase.convertTokensToNamedLists(AnalysisRequestHandlerBase.java:273)
        at org.apache.solr.handler.AnalysisRequestHandlerBase.analyzeValue(AnalysisRequestHandlerBase.java:144)
        at org.apache.solr.handler.FieldAnalysisRequestHandler.analyzeValues(FieldAnalysisRequestHandler.java:227)
        at org.apache.solr.handler.FieldAnalysisRequestHandler.handleAnalysisRequest(FieldAnalysisRequestHandler.java:183)

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

Many thanks,
Markus