mirror of https://github.com/apache/lucene.git
LUCENE-2438: We decided that bytes should never be null, so i changed the recently added external serialization methods to conform to this.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@957926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3ec2e75bd9
commit
a9f79668fd
|
@ -294,7 +294,7 @@ public final class BytesRef implements Comparable<BytesRef>, Externalizable {
|
|||
bytes = new byte[length];
|
||||
in.read(bytes, 0, length);
|
||||
} else {
|
||||
bytes = null;
|
||||
bytes = EMPTY_BYTES;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue