You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Benoit Vanalderweireldt (JIRA)" <ji...@apache.org> on 2016/02/25 05:41:18 UTC

[jira] [Commented] (SOLR-4042) NullPointerException for query type 'query' without '{! ...}' syntax

    [ https://issues.apache.org/jira/browse/SOLR-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166722#comment-15166722 ] 

Benoit Vanalderweireldt commented on SOLR-4042:
-----------------------------------------------

I would think a syntax error is more appropriate.

    First message for me here, i'm not sure about the process, but I'd love to fix this one as a start.

> 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, master
>            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
(v6.3.4#6332)

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