[
https://issues.apache.org/jira/browse/SOLR-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873455#comment-16873455
]
Munendra S N commented on SOLR-4042:
------------------------------------
This is fixed in the master. Related Issue - SOLR-11501. Marking it as closed
{code:java}
https://github.com/apache/lucene-solr/blob/a76c962ee61f5185d30ff5bd94a23c16d21a5a98/solr/core/src/java/org/apache/solr/search/NestedQParserPlugin.java#L40
{code}
cc [~dsmiley]
> NullPointerException for query type 'query' without '{! ...}' syntax
> --------------------------------------------------------------------
>
> Key: SOLR-4042
> URL: https://issues.apache.org/jira/browse/SOLR-4042
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 4.0, 6.0
> Reporter: Joel Nothman
> Priority: Minor
>
> The 'query' query type, corresponding to NestedQParserPlugin, expects a query
> of form: "{! ... } ...". An empty q parameter, or a list of search terms
> causes a NullPointerException because NestedQParserPlugin.createParser
> receives a localParams == null, which is then used without checking in
> NestedQParserPlugin.QParser.parse().
> Correct behaviour is currently ambiguous: throw a syntax error? or execute
> the query with the default parser?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]