From dade9cb0a5bfdedd56ba5d6f4a523a542ab0fa5f Mon Sep 17 00:00:00 2001 From: Mattia Codato Date: Mon, 6 Jul 2020 16:21:05 +0200 Subject: [PATCH] Check if executions are not null --- lib/icinga/clusterevents.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/clusterevents.cpp b/lib/icinga/clusterevents.cpp index b53517dc2..0444225b2 100644 --- a/lib/icinga/clusterevents.cpp +++ b/lib/icinga/clusterevents.cpp @@ -970,6 +970,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);