You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Erick Erickson <er...@gmail.com> on 2017/10/26 16:43:32 UTC

FilterQuery class throws NPE when term drops out

This came to light when someone submitted a term that consisted of all
punctuation and WordDelimiterFilterFactory (Solr 6.3, but master has
the same behavior) removed the term entirely.

Glancing at the code, I'm assuming the "q" member variable is null.
The exception is generated by the hash code calculations:

return q.hashCode() + 0xc0e65615;

But the rest of the class just dereferences q as well. Is this
intended behavior?

fq=field:%26 works fine

filter(field:%26) throws an NPE

I'll raise a JIRA if this isn't expected.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org