From: Seunghun Lee Date: Mon, 11 May 2020 01:33:17 +0000 (+0900) Subject: video: check null pointer before accessing it. X-Git-Tag: submit/tizen/20200511.084646~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7869198c543aa24f68e4b026c291b125b1362706;p=platform%2Fupstream%2Fenlightenment.git video: check null pointer before accessing it. Change-Id: I451c56242fd84948b0f9907dcce9acc747824605 --- diff --git a/src/bin/video/e_comp_wl_video.c b/src/bin/video/e_comp_wl_video.c index 46e908770f..84c5bd7e6f 100644 --- a/src/bin/video/e_comp_wl_video.c +++ b/src/bin/video/e_comp_wl_video.c @@ -183,6 +183,9 @@ _e_comp_wl_video_object_cb_set_attribute(struct wl_client *client, video = wl_resource_get_user_data(resource); EINA_SAFETY_ON_NULL_RETURN(video); + if (!video->ec) + return; + VIN("Client(%s):PID(%d) Attribute:%s, Value:%d", video->ec, e_client_util_name_get(video->ec) ?: "No Name", video->ec->netwm.pid, name, value);