From f3864022404fd74b76e9427a636a22788d7b2f9a Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Mon, 3 Oct 2022 13:47:53 +0200 Subject: [PATCH] eo_base_class: Improved stability Change-Id: I38861744fc1808d4d1efe40779af37733bcfbf39 --- src/lib/eo/eo_base_class.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/lib/eo/eo_base_class.c diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c old mode 100644 new mode 100755 index ebdb596..7703a71 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -1489,7 +1489,8 @@ _eo_callbacks_sorted_insert(Efl_Object_Data *pd, Eo_Callback_Description *cb) j = _eo_callback_search_sorted_near(pd, cb); // Adjust for both case of length == 0 and when priority is equal. while ((j < pd->callbacks_count) && - (pd->callbacks[j]->priority >= cb->priority)) j++; + // TIZEN_ONLY(20221003): eo_base_class: Improved stability + (pd->callbacks[j] && pd->callbacks[j]->priority >= cb->priority)) j++; // Increase the callbacks storage by 16 entries at a time if (_eo_nostep_alloc || (pd->callbacks_count & 0xF) == 0x0) -- 2.7.4