Remove use of thread-local input
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / java / org / opendaylight / controller / remote / rpc / messages / RpcResponse.java
index 35e561178102187aef2c5453160b4c61d9d0be65..6f1b44b8f822cd88cac40c528f261a304c2dbb2d 100644 (file)
@@ -58,8 +58,8 @@ public class RpcResponse implements Serializable {
         }
 
         @Override
-        public void readExternal(final ObjectInput in) {
-            rpcResponse = new RpcResponse(SerializationUtils.deserializeNormalizedNode(in));
+        public void readExternal(final ObjectInput in) throws IOException {
+            rpcResponse = new RpcResponse(SerializationUtils.readNormalizedNode(in).orElse(null));
         }
 
         private Object readResolve() {