jaehyun pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=d4d1826b4744c659b315b0e18d3dc64f387161bf
commit d4d1826b4744c659b315b0e18d3dc64f387161bf Author: Jaehyun Cho <jae_hyun....@samsung.com> Date: Fri Aug 23 12:46:10 2019 +0900 efl_ui_spotlight: add null check for manager stack data Like other functions, null check for manager stack data is added before referencing manager stack data. --- src/lib/elementary/efl_ui_spotlight_manager_stack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_spotlight_manager_stack.c b/src/lib/elementary/efl_ui_spotlight_manager_stack.c index 0df770db7c..dbef2c200d 100644 --- a/src/lib/elementary/efl_ui_spotlight_manager_stack.c +++ b/src/lib/elementary/efl_ui_spotlight_manager_stack.c @@ -62,9 +62,11 @@ static void _running_cb(void *data, const Efl_Event *ev EINA_UNUSED) { Efl_Ui_Spotlight_Manager_Stack_Data *pd = efl_data_scope_safe_get(data, MY_CLASS); + double absolut_position; + EINA_SAFETY_ON_NULL_RETURN(pd); //calculate absolut position, multiply pos with 2.0 because duration is only 0.5) - double absolut_position = pd->from + (pd->to - pd->from)*(efl_player_pos_get(pd->show)*2.0); + absolut_position = pd->from + (pd->to - pd->from)*(efl_player_pos_get(pd->show)*2.0); efl_event_callback_call(data, EFL_UI_SPOTLIGHT_MANAGER_EVENT_POS_UPDATE, &absolut_position); } --