mirror of
https://github.com/apache/lucene.git
synced 2025-03-07 00:39:21 +00:00
Fix NPE in TestReqOptSumScorer.testFilterRandomRareOpt #13069
This commit is contained in:
parent
8c2c276c6c
commit
ce0fa2a6a6
@ -733,6 +733,9 @@ public class CheckHits {
|
||||
assertTrue(s2 == null || s2.iterator().nextDoc() == DocIdSetIterator.NO_MORE_DOCS);
|
||||
continue;
|
||||
}
|
||||
if (s2 == null) {
|
||||
continue;
|
||||
}
|
||||
TwoPhaseIterator twoPhase1 = s1.twoPhaseIterator();
|
||||
TwoPhaseIterator twoPhase2 = s2.twoPhaseIterator();
|
||||
DocIdSetIterator approx1 = twoPhase1 == null ? s1.iterator() : twoPhase1.approximation();
|
||||
|
Loading…
x
Reference in New Issue
Block a user