From 750e0ef311113fcbf1107f5bec71bda098ca85a5 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 14 Dec 2012 14:05:22 +0000 Subject: [PATCH] fix test bug git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1421868 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/test/org/apache/lucene/index/TestIndexWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java index caaab94da8c..b2a83e15628 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -2043,7 +2043,7 @@ public class TestIndexWriter extends LuceneTestCase { Bits liveDocs = ar.getLiveDocs(); int maxDoc = ar.maxDoc(); for (int i = 0; i < maxDoc; i++) { - if (liveDocs.get(i)) { + if (liveDocs == null || liveDocs.get(i)) { assertTrue(liveIds.remove(ar.document(i).get("id"))); } }