Fixed: Prevent NullRef for webhooks when Artist Metadata is not set

Fixes #5368
This commit is contained in:
Bogdan 2025-02-22 16:36:25 +02:00
parent 860bd04c59
commit ec050a7b3c

View file

@ -241,7 +241,7 @@ namespace NzbDrone.Core.Notifications.Webhook
private WebhookArtist GetArtist(Artist artist) private WebhookArtist GetArtist(Artist artist)
{ {
if (artist == null) if (artist?.Metadata?.Value == null)
{ {
return null; return null;
} }