fixed null value

This commit is contained in:
Robinson 2023-01-24 22:27:31 +01:00
parent dbf08c542d
commit cef8cb7f5c
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ class ByteBufOutput : Output {
}
@Throws(KryoException::class)
override fun writeAscii(value: String) {
override fun writeAscii(value: String?) {
if (value == null) {
writeByte(0x80) // 0 means null, bit 8 means UTF8.
return