summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2021-10-17 10:43:06 +0200
committerMarcel Hollerbach <marcel@osg.samsung.com>2021-10-17 10:43:30 +0200
commit28b0ce28ac3085d1c18f7165e5003b73654fe3c1 (patch)
treeaa5bc2a833ae7ff4c1d89c230cfa70f48fcddf99
parent448d65099c0b1ab5b4064a5c964ab3e0a372484d (diff)
downloadenlightenment-28b0ce28ac3085d1c18f7165e5003b73654fe3c1.tar.gz
e_bindings: do not crash when action is not found
-rw-r--r--src/bin/e_bindings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/e_bindings.c b/src/bin/e_bindings.c
index f6a4940693..76658fde39 100644
--- a/src/bin/e_bindings.c
+++ b/src/bin/e_bindings.c
@@ -1683,6 +1683,10 @@ e_bindings_swipe_handle(E_Binding_Context ctxt, E_Object *obj, double direction,
angle_accepted(binding->direction - binding->error, binding->direction + binding->error, direction))
{
act = e_action_find(binding->action);
+ if (!act) {
+ ERR("Action %s cannot be found!", binding->action);
+ return NULL;
+ }
act->func.go(obj, binding->params);
}
}