edje_edit: return NULL if part has not style attribute 60/82060/2
authorVyacheslav Reutskiy <v.reutskiy@samsung.com>
Thu, 16 Jun 2016 07:56:31 +0000 (10:56 +0300)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 3 Aug 2016 09:25:02 +0000 (02:25 -0700)
Change-Id: I47358c1250c2d710513f669c09281d48deea8d71

src/lib/edje/edje_edit.c

index 7a89f36..6547599 100644 (file)
@@ -8127,7 +8127,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