diff --git a/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java b/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java index 96a8ec8..80add35 100755 --- a/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java +++ b/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java @@ -90,7 +90,7 @@ public static Object readFromDisk(String filename, Class type, CipherManager cip // serializer for keys public static byte[] serialize(Object o) { - byte[] ret = new byte[CollisionHash.MAXFILESIZE]; + byte[] ret = new byte[CollisionHash.MAXFILESIZE*2]; Output output = new Output(ret); getKryoInstance().writeObject(output, o); return output.toBytes();