mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Check if executions are not null
This commit is contained in:
parent
6a5deaf7d4
commit
33926ba983
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user