e_foreign_shell: Add NULL check for ec 82/310782/1 accepted/tizen/unified/20240508.124559 accepted/tizen/unified/20240508.150748 accepted/tizen/unified/toolchain/20240513.061340 accepted/tizen/unified/x/20240509.044736 accepted/tizen/unified/x/20240509.085330
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 8 May 2024 07:11:15 +0000 (16:11 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 8 May 2024 07:13:37 +0000 (16:13 +0900)
Change-Id: I1866373181810d3bf1b9e0cc4b4306f32acea028
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/e_foreign_shell.c

index 4c545d53ebd74086ebd589b36fd21e23419ba0ca..7d95703946c18cc9acb9fa6adc9d47229ef14dcb 100644 (file)
@@ -184,6 +184,7 @@ e_foreign_shell_import(struct wl_resource *importer, struct wl_resource *resourc
    EINA_SAFETY_ON_NULL_RETURN_VAL(handle, 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);