evas_object_textblock: add null check for return of eina_inlist_remove

This commit is contained in:
WooHyun Jung 2020-04-21 14:37:23 +09:00
parent 92faf6a0e1
commit b33d4ff197
1 changed files with 1 additions and 1 deletions

View File

@ -17052,7 +17052,7 @@ _merge_to_first_text_nodes(const Evas_Object *eo_obj)
all_cursors = eina_list_clone(o->cursors);
all_cursors = eina_list_append(all_cursors, o->cursor);
while ((tn = _NODE_TEXT(EINA_INLIST_GET(o->text_nodes)->next)))
while (o->text_nodes && (tn = _NODE_TEXT(EINA_INLIST_GET(o->text_nodes)->next)))
{
fn = tn->format_node;