mirror of https://github.com/Icinga/icinga2.git
Fix crash that might occur in a situation where icinga should not crash...
refs #5356
This commit is contained in:
parent
772f319926
commit
12d32ad719
|
@ -72,7 +72,9 @@ String Service::AddDowntime(const String& author, const String& comment,
|
|||
|
||||
if (!triggeredBy.IsEmpty()) {
|
||||
Downtime::Ptr triggerDowntime = GetDowntimeByID(triggeredBy);
|
||||
downtime->SetTriggeredByLegacyId(triggerDowntime->GetLegacyId());
|
||||
|
||||
if (triggerDowntime)
|
||||
downtime->SetTriggeredByLegacyId(triggerDowntime->GetLegacyId());
|
||||
}
|
||||
|
||||
int legacy_id;
|
||||
|
|
Loading…
Reference in New Issue