Naviframe: if item_destructor is called before animator callback deferred function, 74/111374/1
authorShilpa Singh <shilpa.singh@samsung.com>
Tue, 27 Dec 2016 16:00:45 +0000 (21:30 +0530)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 20 Jan 2017 07:29:19 +0000 (16:29 +0900)
crash happens in _tizen_effect_enabled_get as "it" is NULL

Change-Id: I20d2a71d0fe604f108a8c9a1072fea4b302cd76c

src/lib/elc_naviframe.c

index 2d5d985..618508e 100644 (file)
@@ -81,6 +81,7 @@ _nf_mod_init(void)
 static Eina_Bool
 _tizen_effect_enabled_get(Elm_Naviframe_Item_Data *it)
 {
+   if (!it) return EINA_FALSE;
    if (nf_mod &&
        nf_mod->tizen_effect_enabled_get &&
        nf_mod->tizen_effect_enabled_get(VIEW(it)))