Pieter created SOLR-15031:
-----------------------------

             Summary: NPE caused by FunctionQParser returning a null ValueSource
                 Key: SOLR-15031
                 URL: https://issues.apache.org/jira/browse/SOLR-15031
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Pieter


When parsing a sub query in a function query, 
{{FunctionQParser#parseValueSource}} does not check if the produced query 
object is null. When it is, it just wraps a null in a {{QueryValueSource}} 
object. This is a cause for NPE's in code consuming that object. Parsed queries 
can be null, for example when the query string only contains stopwords (see 
steps to reproduce for an example), so we need handle that condition.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to