e_comp_wl: add null checking in e_comp_wl_input_cursor_timer_enable_set() 57/293357/1
authorduna.oh <duna.oh@samsung.com>
Mon, 22 May 2023 01:00:37 +0000 (10:00 +0900)
committerduna.oh <duna.oh@samsung.com>
Thu, 25 May 2023 02:20:33 +0000 (11:20 +0900)
Change-Id: I22c1cfa7b1da182978314cdcbb8e9f28f17f8da9

src/bin/e_comp_wl.c

index 416a648b80ccea59515e0143fd7b053e111167cd..c75a374f0827d1bd534ad1bec1e996c91771e28c 100644 (file)
@@ -5465,7 +5465,7 @@ e_comp_wl_input_cursor_timer_enable_set(Eina_Bool enabled)
           }
         cursor_timer_ec = NULL;
 
-        if (e_comp_wl->ptr.ec->has_cursor_unset)
+        if (e_comp_wl->ptr.ec && e_comp_wl->ptr.ec->has_cursor_unset)
           return;
 
         if (e_pointer_is_hidden(e_comp->pointer))