[MessagePort] Add defensive code for null string (#2558)
authorkilig <inkyun.kil@samsung.com>
Tue, 26 Jan 2021 01:07:24 +0000 (10:07 +0900)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 01:07:24 +0000 (10:07 +0900)
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs

index d6cde6174a2b5f4c36fe3057bc9b4a0abfc39cd2..13b7a452092a9ace1cc7305c7693e82c263faf99 100755 (executable)
@@ -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);