From 7352e7c3655350a408aa2079e38dafa6171f99c2 Mon Sep 17 00:00:00 2001 From: kilig Date: Tue, 26 Jan 2021 10:07:24 +0900 Subject: [PATCH] [MessagePort] Add defensive code for null string (#2558) Signed-off-by: Inkyun Kil --- .../Tizen.Applications.Messages/MessagePort.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs index d6cde61..13b7a45 100755 --- a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs +++ b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs @@ -176,8 +176,8 @@ namespace Tizen.Applications.Messages args.Remote = new RemoteValues() { - AppId = remoteAppId, - PortName = remotePortName, + AppId = remoteAppId != null ? remoteAppId : String.Empty, + PortName = remotePortName != null ? remotePortName : String.Empty, Trusted = trusted }; MessageReceived?.Invoke(this, args); -- 2.7.4