mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user