mirror of
https://github.com/britzl/monarch.git
synced 2025-11-27 03:10:54 +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
|
||||
function instance.handle(message_id, message, sender)
|
||||
transitions[message_id](sender)
|
||||
if transitions[message_id] then
|
||||
transitions[message_id](sender)
|
||||
end
|
||||
end
|
||||
|
||||
-- Specify the transition function when this node is transitioned
|
||||
|
||||
Reference in New Issue
Block a user