From: DoHyun Pyun Date: Mon, 8 Jul 2019 06:32:10 +0000 (+0900) Subject: Fix the coverity issue X-Git-Tag: accepted/tizen/5.5/unified/20191031.014521^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_5.5_unified;p=apps%2Fnative%2Fbluetooth-share-ui.git Fix the coverity issue Change-Id: I965043b9853ed3645ae2d30e21ff5c4d6c47740c Signed-off-by: DoHyun Pyun --- diff --git a/src/bt-share-ui-view.c b/src/bt-share-ui-view.c index d736768..cfc52ee 100644 --- a/src/bt-share-ui-view.c +++ b/src/bt-share-ui-view.c @@ -1083,7 +1083,7 @@ static void __bt_tr_data_item_sel(void *data, Evas_Object *obj, void *event_info INFO_SECURE("path : %s", path); - if (access(path, F_OK) == 0) + if (path && access(path, F_OK) == 0) __bt_open_file(path); else _bt_create_info_popup(ad, BT_STR_FILE_NOT_EXIST); @@ -1094,7 +1094,7 @@ static void __bt_tr_data_item_sel(void *data, Evas_Object *obj, void *event_info path = info->file_path; INFO_SECURE("path : %s", path); - if (access(path, F_OK) == 0) { + if (path && access(path, F_OK) == 0) { if (g_str_has_prefix(path, BT_CONTACT_SHARE_TMP_DIR) == TRUE) /* TODO: change to proper string when UX is updated */ _bt_create_info_popup(ad, BT_STR_FILE_NOT_EXIST);