You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alan Woodward (Jira)" <ji...@apache.org> on 2020/08/28 13:57:00 UTC
[jira] [Commented] (LUCENE-9487) Add a null check on BooleanWeight
[ https://issues.apache.org/jira/browse/LUCENE-9487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186554#comment-17186554 ]
Alan Woodward commented on LUCENE-9487:
---------------------------------------
It is indeed nullable, but all the cases where it could be null are actually dealt with earlier in the method (a match on a MUST_NOT clause, no matches on sub clauses, or too few matches to meet minimum-should-match requirements)
> Add a null check on BooleanWeight
> ---------------------------------
>
> Key: LUCENE-9487
> URL: https://issues.apache.org/jira/browse/LUCENE-9487
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Jehyun Lee
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> There is no null check for scorer in BooleanWeight.explain()
> scorer() method is nullable, but the result of the method do not check it.
>
> [https://github.com/apache/lucene-solr/pull/1795]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org