mirror of
https://github.com/britzl/monarch.git
synced 2025-11-27 11:20:55 +01:00
Null fix when handling transitions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user