furrymyad pushed a commit to branch efl-1.16. http://git.enlightenment.org/core/efl.git/commit/?id=b21fdab1f5582d97a73c0298e72758f8fb7458c8
commit b21fdab1f5582d97a73c0298e72758f8fb7458c8 Author: Vyacheslav Reutskiy <[email protected]> Date: Thu Jun 16 10:56:31 2016 +0300 edje_edit: return NULL if part has not style attribute --- src/lib/edje/edje_edit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c index d45b5b4..026ea57 100644 --- a/src/lib/edje/edje_edit.c +++ b/src/lib/edje/edje_edit.c @@ -8120,7 +8120,10 @@ edje_edit_state_text_style_get(Evas_Object *obj, const char *part, const char *s return NULL; txt = (Edje_Part_Description_Text *)pd; - return eina_stringshare_add(txt->text.style.str); + if (txt->text.style.str) + return eina_stringshare_add(txt->text.style.str); + else + return NULL; } EAPI Eina_Bool --
