Fix #7521 - Runtime error if removing email notificationMethod

This commit is contained in:
Olivier Bossaer
2020-03-28 14:37:31 +01:00
committed by Sebastiaan Janssen
parent 42ddd90fd7
commit 5fad35d0ee

View File

@@ -20,7 +20,7 @@ namespace Umbraco.Web.HealthCheck.NotificationMethods
public EmailNotificationMethod(ILocalizedTextService textService, IRuntimeState runtimeState, ILogger logger)
{
var recipientEmail = Settings["recipientEmail"]?.Value;
var recipientEmail = Settings?["recipientEmail"]?.Value;
if (string.IsNullOrWhiteSpace(recipientEmail))
{
Enabled = false;