From: Jihoon Kim Date: Wed, 8 May 2024 04:52:20 +0000 (+0900) Subject: e_foreign_shell: Add NULL check for ec X-Git-Tag: accepted/tizen/unified/20240508.124559~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c8a9112cf2226569c78a9ccae266a8f82c99a5c;p=platform%2Fupstream%2Fenlightenment.git e_foreign_shell: Add NULL check for ec Change-Id: I81db78a9dd0bfda85182703c76e680789bf2b626 Signed-off-by: Jihoon Kim --- diff --git a/src/bin/e_foreign_shell.c b/src/bin/e_foreign_shell.c index a3d6190d9f..4c545d53eb 100644 --- a/src/bin/e_foreign_shell.c +++ b/src/bin/e_foreign_shell.c @@ -137,6 +137,7 @@ e_foreign_shell_export(struct wl_resource *exporter, struct wl_resource *resourc EINA_SAFETY_ON_NULL_RETURN_VAL(surface, EINA_FALSE); ec = e_client_from_surface_resource(surface); + EINA_SAFETY_ON_NULL_RETURN_VAL(ec, EINA_FALSE); EINA_SAFETY_ON_NULL_RETURN_VAL(ec->comp_data, EINA_FALSE); EINA_SAFETY_ON_FALSE_RETURN_VAL(!e_object_is_del(E_OBJECT(ec)), EINA_FALSE);