diff --git a/lucene/src/java/org/apache/lucene/util/BytesRef.java b/lucene/src/java/org/apache/lucene/util/BytesRef.java index 3e46c7b5836..d3e79be3073 100644 --- a/lucene/src/java/org/apache/lucene/util/BytesRef.java +++ b/lucene/src/java/org/apache/lucene/util/BytesRef.java @@ -294,7 +294,7 @@ public final class BytesRef implements Comparable, Externalizable { bytes = new byte[length]; in.read(bytes, 0, length); } else { - bytes = null; + bytes = EMPTY_BYTES; } } }