summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-02-12 09:04:09 -0500
committerMike Blumenkrantz <zmike@samsung.com>2020-02-12 09:07:48 -0500
commit2170a993882f28637a6b628a414863f4c00ea846 (patch)
tree5b81035ab6c0fa14c63d491a40c7c523c85a746c
parent6981d09f9bbce4ea907286fc93982a744567c505 (diff)
elm_interface_scrollable: prevent calling APIs with NULL edje object
Summary: Is is unnecessary to call edje_object_ functions if `edje_obj` is NULL. Also, It prevents printing 6 eo warnings ``` WRN<30343>:eo ../src/lib/eo/eo.c:644 _efl_object_call_resolve() NULL passed to function efl_layout_signal_emit(). ``` Test Plan: `EINA_LOG_LEVELS=eo:2 elementary_test` `EINA_LOG_LEVELS=eo:3 elementary_test -to focus` Reviewers: bu5hm4n, Jaehyun_Cho, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11315
-rw-r--r--src/lib/elementary/elm_interface_scrollable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c
index 7130efb..f03ae31 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -4032,6 +4032,9 @@ _elm_interface_scrollable_reset_signals(Eo *obj EINA_UNUSED, Elm_Scrollable_Smar
4032{ 4032{
4033 sid->go_up = sid->go_down = sid->go_right = sid->go_left = EINA_FALSE; 4033 sid->go_up = sid->go_down = sid->go_right = sid->go_left = EINA_FALSE;
4034 4034
4035 if (!sid->edje_obj)
4036 return;
4037
4035 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,up", "elm"); 4038 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,up", "elm");
4036 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,down", "elm"); 4039 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,down", "elm");
4037 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,right", "elm"); 4040 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,right", "elm");