From b33d4ff197b05d13f456c1110cb1e6977dcbe22e Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Tue, 21 Apr 2020 14:37:23 +0900 Subject: [PATCH] evas_object_textblock: add null check for return of eina_inlist_remove --- src/lib/evas/canvas/evas_object_textblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index d421acd07f..78ccec4d41 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -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;