Skip to content

Commit 6c13710

Browse files
committed
Fix
1 parent eb73ecd commit 6c13710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/common/io/stream/RecyclerBytesStreamOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private void writeAdditionalPages(byte[] b, int offset, int length) {
114114
public void writeUTF8String(String str) throws IOException {
115115
final int charCount = str.length();
116116
if (charCount == 0) {
117-
writeVInt(0);
117+
writeByte((byte) 0);
118118
return;
119119
}
120120

0 commit comments

Comments
 (0)