You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2008/11/10 23:59:44 UTC
[jira] Commented: (LUCENE-1246) Missing a null check in
BooleanQuery.toString(String)
[ https://issues.apache.org/jira/browse/LUCENE-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646400#action_12646400 ]
Mark Miller commented on LUCENE-1246:
-------------------------------------
bq. Could one argue that maybe your queryParser/tokenizer shouldn't create null queries and add them to BooleanQuery clauses?
I would argue that ; ) But I also would argue that a resilient toString() is a good idea anyway.
> 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.3.1
> Reporter: John Wang
> Assignee: Otis Gospodnetic
> Priority: Minor
> 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