From 7869198c543aa24f68e4b026c291b125b1362706 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Mon, 11 May 2020 10:33:17 +0900 Subject: [PATCH] video: check null pointer before accessing it. Change-Id: I451c56242fd84948b0f9907dcce9acc747824605 --- src/bin/video/e_comp_wl_video.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.34.1