Add to check data for backward compatibility 74/258074/2
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 10 May 2021 06:45:32 +0000 (15:45 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 10 May 2021 06:47:09 +0000 (06:47 +0000)
Change-Id: Icbf9f34a6700ccf5cfa6f4f595bedb7ada32da6b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/app-control/stub.cc

index 4c79a2226bb798f43c7945fb07158184cc485b24..d7b3ecfacc1f1a55190c3e4a4cc82ab5d951c400 100644 (file)
@@ -249,7 +249,7 @@ EXPORT int app_control_create_from_uri_handle(app_control_h* app_control,
 
 EXPORT int app_control_create_event(bundle* data,
     app_control_h* app_control) {
-  if (app_control == nullptr) {
+  if (app_control == nullptr || data == nullptr) {
     _E("Invalid parameter");
     return APP_CONTROL_ERROR_INVALID_PARAMETER;
   }