From: kilig Date: Tue, 26 Jan 2021 01:07:24 +0000 (+0900) Subject: [MessagePort] Add defensive code for null string (#2558) X-Git-Tag: submit/tizen_6.0/20210126.142202~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7352e7c3655350a408aa2079e38dafa6171f99c2;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [MessagePort] Add defensive code for null string (#2558) 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 d6cde6174..13b7a4520 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);