Check if executions are not null

This commit is contained in:
Mattia Codato 2020-07-06 16:21:05 +02:00
parent 6a5deaf7d4
commit 33926ba983
1 changed files with 2 additions and 0 deletions

View File

@ -982,6 +982,8 @@ Value ClusterEvents::UpdateExecutionsAPIHandler(const MessageOrigin::Ptr& origin
}
Dictionary::Ptr executions = checkable->GetExecutions();
if (!executions)
executions = new Dictionary();
Dictionary::Ptr newExecutions = params->Get("executions");
newExecutions->CopyTo(executions);
checkable->SetExecutions(executions);