From: Hwankyu Jhun Date: Fri, 12 Aug 2022 08:14:46 +0000 (+0900) Subject: Fix wrong exception handling about appid check X-Git-Tag: submit/tizen_6.5/20220812.094114~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F279609%2F1;p=platform%2Fcore%2Fappfw%2Famd.git Fix wrong exception handling about appid check If the appid is nullptr in the __check_request() function, the function should return 0. Change-Id: Ie8e5422172b11cdf55348f6408ef4f97c1179c0d Signed-off-by: Hwankyu Jhun --- diff --git a/src/lib/amd_request.c b/src/lib/amd_request.c index a81d2865..53bb9fed 100644 --- a/src/lib/amd_request.c +++ b/src/lib/amd_request.c @@ -503,7 +503,7 @@ static int __check_request(request_h req) return 0; if (req->kb == NULL) - return -1; + return 0; if (__can_be_implicit_launch(req->cmd)) _app_control_resolve(req->t_uid, req->kb); @@ -517,7 +517,7 @@ static int __check_request(request_h req) appid = bundle_get_val(req->kb, AUL_K_APPID); if (appid == NULL) - return -1; + return 0; app_status = __get_app_status(req, appid); if (app_status == NULL)