edje: prevent crash when a edje object does not load a file 42/94742/1
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 1 Nov 2016 04:57:36 +0000 (13:57 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 1 Nov 2016 04:57:36 +0000 (13:57 +0900)
@tizen_fix

Change-Id: I94db2c0108a7054f9eb1dc95f133aa87a9016986

src/lib/edje/edje_util.c

index 6073d0d..8038ad3 100644 (file)
@@ -5968,7 +5968,7 @@ _edje_color_class_find(const Edje *ed, const char *color_class)
    /* TIZEN_ONLY(20161019): update color_class/text_class logic for textblock
    cc = eina_hash_find(ed->file->color_hash, color_class);
     */
-   if (ed) cc = eina_hash_find(ed->file->color_hash, color_class);
+   if (ed && ed->file) cc = eina_hash_find(ed->file->color_hash, color_class);
    /* END */
 
    if (cc) return cc;