[PACKAGE UPLOAD] VERSION 0.0.60
authorEunmi Son <eunmi.son@samsung.com>
Tue, 29 Jan 2013 02:05:59 +0000 (06:05 +0400)
committerEunmi Son <eunmi.son@samsung.com>
Tue, 29 Jan 2013 02:05:59 +0000 (06:05 +0400)
Fix the prevent bugs

Change-Id: I9428d3ab3ff8b9d70b083b323b11d08bb2fe5bd8

packaging/ug-setting-manage-applications-efl.spec
ug/src/mgr-app-view-app-list.c

index 851ff57..66f2efe 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:          ug-setting-manage-applications-efl
 Summary:       Manage Application package
-Version:       0.0.58
+Version:       0.0.60
 Release:       0
 Group:         Applications/System
 License:       Flora Software License
index 7ed6482..0d8de41 100755 (executable)
@@ -362,12 +362,21 @@ static void _insert_to_app_list(mgr_app_app_info_t *app_info_new, void *user_dat
        /* insert to genlist */
        if (_target_idx > 1) {
                prev_item = elm_genlist_nth_item_get(_genlist, _target_idx);
-               ret_if(NULL == prev_item);
+               if (NULL == prev_item) {
+                       MGR_APP_DEBUG_ERR("prev_item is null");
+                       goto end;
+               }
                new_item = elm_genlist_item_insert_after(_genlist, itc, (void*)app_info_new, NULL, prev_item, ELM_GENLIST_ITEM_NONE, _gl_sel, (void*)ugd);
-               ret_if(NULL == new_item);               
+               if (NULL == new_item) {
+                       MGR_APP_DEBUG_ERR("new_item is null");
+                       goto end;
+               }               
        } else {
                new_item = elm_genlist_item_append(_genlist, itc, (void*)app_info_new, NULL, ELM_GENLIST_ITEM_NONE, _gl_sel, (void*)ugd);
-               ret_if(NULL == new_item);
+               if (NULL == new_item) {
+                       MGR_APP_DEBUG_ERR("new_item is null");
+                       goto end;
+               }
        }
 
        if (NULL == app_info_new->pkg_label) {
@@ -389,9 +398,15 @@ static void _insert_to_app_list(mgr_app_app_info_t *app_info_new, void *user_dat
 
        } else if (_target_idx == 1) {
                next_item = elm_genlist_item_next_get(new_item);
-               ret_if(NULL == next_item);
+               if (NULL == next_item) {
+                       MGR_APP_DEBUG_ERR("next_item is null");
+                       goto end;
+               }
                next_info = (mgr_app_app_info_t *)elm_object_item_data_get(next_item);
-               ret_if(NULL == next_info);      
+               if (NULL == next_info) {
+                       MGR_APP_DEBUG_ERR("next_info is null");
+                       goto end;
+               }
 
                if (NULL == next_info->pkg_label) {
                        MGR_APP_DEBUG_ERR("pkg_label is null");
@@ -420,9 +435,15 @@ static void _insert_to_app_list(mgr_app_app_info_t *app_info_new, void *user_dat
                
        } else if (_target_idx > 1 && _target_idx < _installed_cnt) {
                prev_item = elm_genlist_item_prev_get(new_item);
-               ret_if(NULL == prev_item);
+               if (NULL == prev_item) {
+                       MGR_APP_DEBUG_ERR("prev_item is null");
+                       goto end;
+               }
                next_item = elm_genlist_item_next_get(new_item);
-               ret_if(NULL == next_item);
+               if (NULL == next_item) {
+                       MGR_APP_DEBUG_ERR("next_item is null");
+                       goto end;
+               }
 
                prev_info = (mgr_app_app_info_t *)elm_object_item_data_get(prev_item);
                ret_if(NULL == prev_info);
@@ -475,9 +496,15 @@ static void _insert_to_app_list(mgr_app_app_info_t *app_info_new, void *user_dat
                
        } else if (_target_idx == _installed_cnt) {
                prev_item = elm_genlist_item_prev_get(new_item);
-               ret_if(NULL == prev_item);
+               if (NULL == prev_item) {
+                       MGR_APP_DEBUG_ERR("prev_item is null");
+                       goto end;
+               }
                prev_info = (mgr_app_app_info_t *)elm_object_item_data_get(prev_item);
-               ret_if(NULL == prev_info);      
+               if (NULL == prev_info) {
+                       MGR_APP_DEBUG_ERR("prev_info is null");
+                       goto end;
+               }
 
                if (NULL == next_info->pkg_label) {
                        MGR_APP_DEBUG_ERR("pkg_label is null");