e_comp_object: check if cw->ec is null 82/238782/2
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 17 Jul 2020 08:02:55 +0000 (17:02 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 17 Jul 2020 08:41:20 +0000 (17:41 +0900)
Change-Id: I8c20593eb7eeb17be58d6888a5c087c37e73256c

src/bin/e_comp_object.c

index 01be9d6dd1252b7ac24eb8370139f252aa3718d5..cff9f480bab085829bd1cf39bc6c41ea568755ad 100644 (file)
@@ -2209,6 +2209,8 @@ _e_comp_intercept_show_helper(E_Comp_Object *cw)
    E_Client *ec = cw->ec;
    int w = 0, h = 0;
 
+   EINA_SAFETY_ON_NULL_RETURN(cw->ec);
+
 #ifdef _F_E_COMP_OBJECT_INTERCEPT_HOOK_
    if (!_e_comp_object_intercept_hook_call(E_COMP_OBJECT_INTERCEPT_HOOK_SHOW_HELPER, ec))
      {