From: InHong Han Date: Mon, 28 Mar 2022 08:34:59 +0000 (+0900) Subject: Fix defect detected by static analysis tool X-Git-Tag: submit/tizen/20220329.014018~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F272945%2F3;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Fix defect detected by static analysis tool Change-Id: Ia321275d52d759180af015baddbe6692ca27e8fa --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index e508811..9a895b3 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -504,6 +504,7 @@ static void _e_text_input_method_context_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource) { E_Input_Method_Context *context = wl_resource_get_user_data(resource); + EINA_SAFETY_ON_NULL_GOTO(context, err); LOGD("resource(%p), context(%p), context->input(%p), context->input_method(%p)", resource, context, context->input, context->input_method); @@ -1307,6 +1308,8 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource client_surface_ec = ec; text_input = wl_resource_get_user_data(resource); + EINA_SAFETY_ON_NULL_GOTO(text_input, err); + g_text_input = text_input; g_client = client;