Add exception handler 00/228000/1
authorJunghoon Park <jh9216.park@samsung.com>
Wed, 18 Mar 2020 04:36:07 +0000 (13:36 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Wed, 18 Mar 2020 04:36:07 +0000 (13:36 +0900)
Change-Id: I4b7853b32e1a26dee83d31f13b790e705eb3d515
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
src/rpc-port.cc

index 88046bb..0614b76 100644 (file)
@@ -223,7 +223,7 @@ RPC_API int rpc_port_proxy_destroy(rpc_port_proxy_h h) {
 
 RPC_API int rpc_port_proxy_connect(rpc_port_proxy_h h, const char* appid,
     const char* port) {
-  if (h == nullptr)
+  if (h == nullptr || appid == nullptr || port == nullptr)
     return RPC_PORT_ERROR_INVALID_PARAMETER;
 
   auto p = static_cast<::ProxyExt*>(h);