Remove use of thread-local input
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / ReadDataReply.java
index 93bf2ece0cc6e002b189e6cf4f7deee6155cb854..5c00cf16507344febb6fcce8d87d897863f1145d 100644 (file)
@@ -34,7 +34,7 @@ public class ReadDataReply extends VersionedExternalizableMessage {
     @Override
     public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
         super.readExternal(in);
-        normalizedNode = SerializationUtils.deserializeNormalizedNode(in);
+        normalizedNode = SerializationUtils.readNormalizedNode(in).orElse(null);
     }
 
     @Override