removed redudant null checking
@@ -1183,13 +1183,6 @@ public class ORecordSerializerBinaryV1 extends ORecordSerializerBinaryV0 {
ridbag.getDelegate().setSize(size);
for (int i = 0; i < size; i++) {
OIdentifiable record = readLinkOptimizedEmbedded(bytes);
- if (record == null) {
- //should never happen
- String errorMessage = "Deserialized null object during ridbag deserialization";
- OSerializationException exc = new OSerializationException("");
- OLogManager.instance().error(ORecordSerializerBinaryV1.class, errorMessage, null);
- throw exc;
- } else
((OEmbeddedRidBag) ridbag.getDelegate()).addEntry(record);
}
} else {
