From 61ab6a8530982a47365401a96ea8402a5adf79da Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Fri, 18 Dec 2020 11:53:00 +0900 Subject: [PATCH] evas render: ++safety Null check exceptional handling in just case. Change-Id: I17793d2d573f5b64f011de449057fab598dd6d53 --- src/lib/evas/canvas/evas_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c index 4c90840..9d8e405 100644 --- a/src/lib/evas/canvas/evas_render.c +++ b/src/lib/evas/canvas/evas_render.c @@ -438,7 +438,7 @@ _evas_render_object_changed_get(Evas_Object_Protected_Data *obj) static inline Eina_Bool _evas_render_object_is_mask(Evas_Object_Protected_Data *obj) { - if (!obj) return EINA_FALSE; + if (!obj || !obj->mask) return EINA_FALSE; if (obj->mask->is_mask && obj->clip.clipees) return EINA_TRUE; return EINA_FALSE; -- 2.7.4