mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed a bug in ByteArrayMarshaller
This commit is contained in:
@@ -58,7 +58,7 @@ public enum ByteArrayMarshaller implements BytesInterop<byte[]>, BytesReader<byt
|
||||
|
||||
@Override
|
||||
public byte[] read(Bytes bytes, long size, byte[] ba) {
|
||||
if (size != ba.length)
|
||||
if (ba == null || size != ba.length)
|
||||
ba = new byte[(int) size];
|
||||
bytes.read(ba);
|
||||
return ba;
|
||||
|
||||
Reference in New Issue
Block a user