summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2020-04-21 14:37:23 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-04-21 14:37:23 +0900
commitb33d4ff197b05d13f456c1110cb1e6977dcbe22e (patch)
tree5a885807f086aaf0a94aa5534427e537f1204d3f
parent92faf6a0e17e4b6aa84ed4298c8c80733035cfd2 (diff)
downloadefl-b33d4ff197b05d13f456c1110cb1e6977dcbe22e.tar.gz
evas_object_textblock: add null check for return of eina_inlist_remove
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c2
1 files changed, 1 insertions, 1 deletions
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;