Add an exception handling 69/101569/1 accepted/tizen/3.0/common/20161203.012520 accepted/tizen/3.0/ivi/20161201.134736 accepted/tizen/3.0/mobile/20161201.134646 accepted/tizen/3.0/tv/20161201.134703 accepted/tizen/3.0/wearable/20161201.134721 submit/tizen_3.0/20161201.123639
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Dec 2016 12:21:40 +0000 (21:21 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Dec 2016 12:21:40 +0000 (21:21 +0900)
- Check whether the variable is null pointer or not

Change-Id: I70a8ffeac2003e0b5e5bc0fef758688e00faa642
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/pkgmgrinfo_appinfo.c

index ab9a330..ed618ac 100644 (file)
@@ -459,6 +459,9 @@ static bool __check_app_storage_status(pkgmgrinfo_filter_x *tmp_filter)
        pkgmgrinfo_node_x *tmp_node = NULL;
        int property = -1;
 
+       if (tmp_filter == NULL)
+               return true;
+
        property = _pminfo_appinfo_convert_to_prop_bool(PMINFO_APPINFO_PROP_APP_CHECK_STORAGE);
        for (tmp_list = tmp_filter->list; tmp_list != NULL;
                        tmp_list = g_slist_next(tmp_list)) {