summaryrefslogtreecommitdiff
path: root/src
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 /src
parent448d65099c0b1ab5b4064a5c964ab3e0a372484d (diff)
e_bindings: do not crash when action is not found
Diffstat (limited to 'src')
-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 f6a494069..76658fde3 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,
1683 angle_accepted(binding->direction - binding->error, binding->direction + binding->error, direction)) 1683 angle_accepted(binding->direction - binding->error, binding->direction + binding->error, direction))
1684 { 1684 {
1685 act = e_action_find(binding->action); 1685 act = e_action_find(binding->action);
1686 if (!act) {
1687 ERR("Action %s cannot be found!", binding->action);
1688 return NULL;
1689 }
1686 act->func.go(obj, binding->params); 1690 act->func.go(obj, binding->params);
1687 } 1691 }
1688 } 1692 }