mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +02:00
Null fix when handling transitions
This commit is contained in:
parent
9be4eeb87c
commit
149c50221c
@ -79,7 +79,9 @@ function M.create(node)
|
|||||||
|
|
||||||
-- Forward on_message calls here
|
-- Forward on_message calls here
|
||||||
function instance.handle(message_id, message, sender)
|
function instance.handle(message_id, message, sender)
|
||||||
transitions[message_id](sender)
|
if transitions[message_id] then
|
||||||
|
transitions[message_id](sender)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Specify the transition function when this node is transitioned
|
-- Specify the transition function when this node is transitioned
|
||||||
|
Loading…
x
Reference in New Issue
Block a user