e_bindings: do not crash when action is not found

This commit is contained in:
Marcel Hollerbach 2021-10-17 10:43:06 +02:00
parent 448d65099c
commit 28b0ce28ac
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}