summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-06 16:16:30 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-07 10:58:11 +0200
commit6ba5773ca5d7b7299c0d02be5f4a143951bcb044 (patch)
treebf5f9eca50e8d4277a62ccfdf47f2861f1559259
parentfd853894e5ca6f165447c202f0fbcc89237842b0 (diff)
evas: prepare for cur beeing NULL
debug name could be called during any time, even before the constructor, of this super class is hit. So cur can be NULL here. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11659
-rw-r--r--src/lib/evas/canvas/evas_name.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_name.c b/src/lib/evas/canvas/evas_name.c
index 7c432e84d1..1db2e88b35 100644
--- a/src/lib/evas/canvas/evas_name.c
+++ b/src/lib/evas/canvas/evas_name.c
@@ -74,7 +74,11 @@ _efl_canvas_object_efl_object_debug_name_override(Eo *eo_obj, Evas_Object_Protec
74 const char *clip = obj->clip.clipees ? ":clipper" : ""; 74 const char *clip = obj->clip.clipees ? ":clipper" : "";
75 75
76 efl_debug_name_override(efl_super(eo_obj, EFL_CANVAS_OBJECT_CLASS), sb); 76 efl_debug_name_override(efl_super(eo_obj, EFL_CANVAS_OBJECT_CLASS), sb);
77 if (obj->cur->visible) 77 if (!obj->cur)
78 {
79 eina_strbuf_append_printf(sb, ":nostate");
80 }
81 else if (obj->cur->visible)
78 { 82 {
79 eina_strbuf_append_printf(sb, "%s%s:(%d,%d %dx%d)", norend, clip, 83 eina_strbuf_append_printf(sb, "%s%s:(%d,%d %dx%d)", norend, clip,
80 obj->cur->geometry.x, obj->cur->geometry.y, 84 obj->cur->geometry.x, obj->cur->geometry.y,