From ec050a7b3c6bd2ac87a915f7220eb3b89db2a169 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 22 Feb 2025 16:36:25 +0200 Subject: [PATCH] Fixed: Prevent NullRef for webhooks when Artist Metadata is not set Fixes #5368 --- src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs index 2807912f2..bd378ae0f 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs @@ -241,7 +241,7 @@ namespace NzbDrone.Core.Notifications.Webhook private WebhookArtist GetArtist(Artist artist) { - if (artist == null) + if (artist?.Metadata?.Value == null) { return null; }