elm/gengrid: more null checks for setting mirrored state during construction
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 29 May 2019 13:17:55 +0000 (09:17 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 3 Jun 2019 06:58:35 +0000 (15:58 +0900)
Summary:
sd->obj is only non-null later in construction, so add even more checks for it
here

@fix
Depends on D8961

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8962

src/lib/elementary/elm_gengrid.c

index 6506466..17cd530 100755 (executable)
@@ -4879,7 +4879,7 @@ _mirrored_set(Evas_Object *obj,
 
    ELM_GENGRID_DATA_GET(obj, sd);
 
-   if (efl_finalized_get(sd->obj))
+   if (sd->obj && efl_finalized_get(sd->obj))
      _item_cache_zero(sd);
    efl_ui_mirrored_set(efl_super(obj, MY_CLASS), rtl);