diff --git a/alertsource.go b/alertsource.go index 0cb9a98..74ef6cf 100644 --- a/alertsource.go +++ b/alertsource.go @@ -540,7 +540,7 @@ func (c *Client) UpdateAlertSource(input *UpdateAlertSourceInput) (*UpdateAlertS input.AlertSource.IncidentPriorityRule = "" } - if input.AlertSource.SupportHours.AutoRaiseIncidents { + if input.AlertSource.SupportHours != nil && input.AlertSource.SupportHours.AutoRaiseIncidents { input.AlertSource.SupportHours.AutoRaiseAlerts = true input.AlertSource.SupportHours.AutoRaiseIncidents = false } diff --git a/version.go b/version.go index 14e0e4e..cd7d5dd 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v2.0.4" +const Version = "v2.0.5"