merge the new developmentbranch into the test branch #39

Closed
j23f0712 wants to merge 431 commits from development2 into dev/test
Showing only changes of commit daa8c0bf9d - Show all commits

View File

@@ -14,7 +14,11 @@ public <T> T readObject(ByteBuffer data, Class<T> c) throws IOException
byte[] uuid = new byte[36]; byte[] uuid = new byte[36];
data.get(uuid); data.get(uuid);
return (T) UUID.fromString(new String(uuid)); if(uuid.equals(new UUID(1, 1))) {
return null;
} else {
return (T) UUID.fromString(new String(uuid));
}
} }
@Override @Override
@@ -24,6 +28,8 @@ public void writeObject(ByteBuffer buffer, Object object) throws IOException
if(uuid != null) { if(uuid != null) {
buffer.put(uuid.toString().getBytes()); buffer.put(uuid.toString().getBytes());
} else {
buffer.put(new UUID(1, 1).toString().getBytes());
} }
} }
} }