in network serializer avoid determining type if type is == -1
@@ -200,7 +200,11 @@ public class ORecordSerializerNetworkV37 implements ORecordSerializer {
}
protected OType readOType(final BytesContainer bytes) {
- return OType.getById(readByte(bytes));
+ byte typeByte = readByte(bytes);
+ if (typeByte == -1){
+ return null;
+ }
+ return OType.getById(typeByte);
}
private void writeOType(BytesContainer bytes, int pos, OType type) {
