[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 d6cde61..13b7a45 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);