genlist: Fix for null check 59/275159/2
authorjykeon <jykeon@samsung.com>
Tue, 17 May 2022 10:37:51 +0000 (19:37 +0900)
committerChun <jykeon@samsung.com>
Wed, 18 May 2022 01:08:49 +0000 (01:08 +0000)
Change-Id: Ic907d3a3c22f5fc9446b4fc0c65f395696ea95f4
Signed-off-by: jykeon <jykeon@samsung.com>
src/lib/elementary_tizen/elm_genlist.c

index 6090947..de860d1 100644 (file)
@@ -10618,6 +10618,8 @@ _elm_genlist_item_efl_access_object_state_set_get(const Eo *eo_it, Elm_Gen_Item
    //TIZEN_ONLY(20191213): Add exapnded/collasped state based on style
    else
      {
+        if(!it) return ret;
+
         if (it && it->itc->item_style && (!strcmp(it->itc->item_style, "groupindex")))
           {
              if (elm_genlist_item_expanded_get(eo_it))