Before finding the app status using the appid, AMD should check whether
the appid is nullptr or not.
Change-Id: Ib1b55278c8558aa9e4fe18dc25c9d6f57bd1a81a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (req->kb == NULL)
return -1;
- if (bundle_get_val(req->kb, AUL_K_APPID) == NULL)
- return -1;
-
if (__can_be_implicit_launch(req->cmd))
_app_control_resolve(req->t_uid, req->kb);
_appinfo_set_effective_appid(req->t_uid, req->kb);
appid = bundle_get_val(req->kb, AUL_K_APPID);
+ if (appid == NULL)
+ return -1;
+
app_status = __get_app_status(req, appid);
if (app_status == NULL)
return 0;