Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 638FEDA27 for ; Wed, 7 Nov 2012 03:06:16 +0000 (UTC) Received: (qmail 19475 invoked by uid 500); 7 Nov 2012 03:06:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 19291 invoked by uid 500); 7 Nov 2012 03:06:14 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 19231 invoked by uid 99); 7 Nov 2012 03:06:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 03:06:12 +0000 Date: Wed, 7 Nov 2012 03:06:11 +0000 (UTC) From: "Joel Nothman (JIRA)" To: dev@lucene.apache.org Message-ID: <473905037.78731.1352257572185.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (SOLR-4042) NullPointerException for query type 'query' without '{! ...}' syntax MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Joel Nothman created SOLR-4042: ---------------------------------- Summary: 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, 5.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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org