Fix static issues 23/254423/1
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 3 Mar 2021 00:36:21 +0000 (09:36 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Wed, 3 Mar 2021 01:00:09 +0000 (01:00 +0000)
Change-Id: Ib9dba5702e583bc91cff4c55c75417e2d9b164c2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/modules/ui-core/src/app_group.c

index c356f15ca0f574db3716dc3332a8dc46a882d946..91eb52d032788cb90f3230526552db0a65ec46c0 100644 (file)
@@ -650,6 +650,11 @@ static void __app_group_node_remove_leader(const char *id)
                __destroy_app_group_context(ctx);
 
        node = g_list_delete_link(node, node);
+       if (!node){
+               _W("Not found sub nodes");
+               return;
+       }
+
        ctx = (struct app_group_context_s *)node->data;
 
        __app_group_list = g_list_remove(__app_group_list, group);