mirror of
https://github.com/apache/lucene.git
synced 2025-03-07 00:39:21 +00:00
fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1641618 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5dbff1d1c1
commit
327d10e153
@ -330,7 +330,8 @@ public class TestStressIndexing2 extends LuceneTestCase {
|
||||
final Bits liveDocs2 = MultiFields.getLiveDocs(r2);
|
||||
|
||||
Fields fields = MultiFields.getFields(r2);
|
||||
if (fields.size() == 0) {
|
||||
Terms terms2 = fields.terms(idField);
|
||||
if (fields.size() == 0 || terms2 == null) {
|
||||
// make sure r1 is in fact empty (eg has only all
|
||||
// deleted docs):
|
||||
Bits liveDocs = MultiFields.getLiveDocs(r1);
|
||||
@ -343,7 +344,6 @@ public class TestStressIndexing2 extends LuceneTestCase {
|
||||
}
|
||||
return;
|
||||
}
|
||||
Terms terms2 = fields.terms(idField);
|
||||
TermsEnum termsEnum2 = terms2.iterator(null);
|
||||
|
||||
DocsEnum termDocs1 = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user