Skip to content

Commit 8b3bda6

Browse files
committed
Fix 'System.NullReferenceException' when calling Linux services
1 parent 88cfa05 commit 8b3bda6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ROS_Comm/ServiceServerLink.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public bool call(MReq req, ref MRes resp)
342342
IRosMessage iresp = resp;
343343
bool r = call(req, ref iresp);
344344
if (iresp != null)
345-
resp = (MRes) resp.Deserialize(iresp.Serialized);
345+
resp = (MRes) iresp;//.Deserialize(iresp.Serialized);
346346
else
347347
{
348348
//std_servs.Empty, I hope?

0 commit comments

Comments
 (0)