From: kilig Date: Tue, 26 Jan 2021 01:06:34 +0000 (+0900) Subject: [MessagePort] Fix bug for getting remote value (#2554) X-Git-Tag: accepted/tizen/unified/20210219.040944~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eeacbf0e50cd283a6749358dd150a75762d1d3f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [MessagePort] Fix bug for getting remote value (#2554) Signed-off-by: Inkyun Kil --- diff --git a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs index f7cddc0..13b7a45 100755 --- a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs +++ b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs @@ -174,15 +174,12 @@ namespace Tizen.Applications.Messages return; } - if (!String.IsNullOrEmpty(remotePortName) && !String.IsNullOrEmpty(remoteAppId)) + args.Remote = new RemoteValues() { - args.Remote = new RemoteValues() - { - AppId = remoteAppId, - PortName = remotePortName, - Trusted = trusted - }; - } + AppId = remoteAppId != null ? remoteAppId : String.Empty, + PortName = remotePortName != null ? remotePortName : String.Empty, + Trusted = trusted + }; MessageReceived?.Invoke(this, args); };