From: Youngbok Shin Date: Tue, 1 Nov 2016 04:57:36 +0000 (+0900) Subject: edje: prevent crash when a edje object does not load a file X-Git-Tag: accepted/tizen/common/20161102.121557~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=577ac3059f9220ecdc4c4b88e4bfd91db28f4367;p=platform%2Fupstream%2Fefl.git edje: prevent crash when a edje object does not load a file @tizen_fix Change-Id: I94db2c0108a7054f9eb1dc95f133aa87a9016986 --- diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c index 6073d0d..8038ad3 100644 --- a/src/lib/edje/edje_util.c +++ b/src/lib/edje/edje_util.c @@ -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;