evas: Fix crash with invalid input in textblock

This commit is contained in:
Jean-Philippe Andre 2017-01-10 19:24:18 +09:00
parent 28fafbb1f4
commit f616b3ee15
1 changed files with 1 additions and 1 deletions

View File

@ -6952,7 +6952,7 @@ _efl_canvas_text_style_get(Eo *eo_obj EINA_UNUSED, Efl_Canvas_Text_Data *o, cons
{
Evas_Textblock_Style *ts = _style_by_key_find(o, key);
return ts->style_text;
return ts ? ts->style_text : NULL;
}
#define _STYLE_USER "_style_user"