diff --git a/lucene/core/src/java/org/apache/lucene/codecs/SimpleDVConsumer.java b/lucene/core/src/java/org/apache/lucene/codecs/SimpleDVConsumer.java index 686d78b3d83..b1f3fa30b3f 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/SimpleDVConsumer.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/SimpleDVConsumer.java @@ -250,6 +250,7 @@ public abstract class SimpleDVConsumer implements Closeable { if (reader.hasDeletions()) { state.liveTerms = new FixedBitSet(state.values.getValueCount()); Bits liveDocs = reader.getLiveDocs(); + assert liveDocs != null; for(int docID=0;docID