Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 14915 invoked from network); 3 Dec 2008 14:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 14:18:37 -0000 Received: (qmail 36301 invoked by uid 500); 3 Dec 2008 14:18:46 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 36246 invoked by uid 500); 3 Dec 2008 14:18:46 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 36237 invoked by uid 99); 3 Dec 2008 14:18:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 06:18:46 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 14:17:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54151234C2AB for ; Wed, 3 Dec 2008 06:17:44 -0800 (PST) Message-ID: <168892616.1228313864343.JavaMail.jira@brutus> Date: Wed, 3 Dec 2008 06:17:44 -0800 (PST) From: "Mark Miller (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-1246) Missing a null check in BooleanQuery.toString(String) In-Reply-To: <817831274.1206642805686.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Miller resolved LUCENE-1246. --------------------------------- Resolution: Fixed Lucene Fields: [New, Patch Available] (was: [Patch Available, New]) Thanks John! > Missing a null check in BooleanQuery.toString(String) > ----------------------------------------------------- > > Key: LUCENE-1246 > URL: https://issues.apache.org/jira/browse/LUCENE-1246 > Project: Lucene - Java > Issue Type: Bug > Components: Query/Scoring > Affects Versions: 2.4 > Reporter: John Wang > Assignee: Mark Miller > Priority: Minor > Fix For: 2.9 > > Attachments: BooleanQueryNPE.txt > > > Our queryParser/tokenizer in some situations creates null query and was added as a clause to Boolean query. > When we try to log the query, NPE is thrown from log(booleanQuery). > In BooleanQuery.toString(String), a simple null check is overlooked. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org