Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 55768 invoked from network); 24 Mar 2011 06:18:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 06:18:45 -0000 Received: (qmail 84879 invoked by uid 500); 24 Mar 2011 06:18:44 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 84700 invoked by uid 500); 24 Mar 2011 06:18:44 -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 84692 invoked by uid 99); 24 Mar 2011 06:18:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 06:18:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 06:18:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C17E24BF83 for ; Thu, 24 Mar 2011 06:18:05 +0000 (UTC) Date: Thu, 24 Mar 2011 06:18:05 +0000 (UTC) From: "Ramesh (JIRA)" To: dev@lucene.apache.org Message-ID: <1776876188.7905.1300947485789.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (LUCENE-2987) QueryParser throwing null pointer exception if input is invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 QueryParser throwing null pointer exception if input is invalid --------------------------------------------------------------- Key: LUCENE-2987 URL: https://issues.apache.org/jira/browse/LUCENE-2987 Project: Lucene - Java Issue Type: Bug Components: QueryParser Affects Versions: 3.0.2 Reporter: Ramesh I was using org.apache.lucene.queryParser.QueryParser for parsing the input. My input: Input query string: "category:(4 or 6 or 8)" Analyzer: StandardAnalyzer QueryParser's parse() method is resulting in Null Pointer Exception. If i give input query string as "category:(4 OR 6 OR 8)" which is uppercase 'OR', it works fine and i get the desired results. I'm seeing the problem only with lower case 'or' -- This message is automatically generated by JIRA. 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