diff --git a/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java b/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java index c514ad0e22e..464a7f2f219 100644 --- a/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java +++ b/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java @@ -487,7 +487,7 @@ abstract class DocValuesFieldUpdates implements Accountable { @Override public long ramBytesUsed() { - return super.ramBytesUsed() + bitSet.ramBytesUsed(); + return super.ramBytesUsed() + bitSet.ramBytesUsed() + (hasNoValue == null ? 0 : hasNoValue.ramBytesUsed()); } @Override