From 9854884ed33f62f433202d3b7ce3d213087703e1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 11 Jul 2023 19:45:54 +0300 Subject: [PATCH] Fixed: Queue not loading when it contains unmapped releases --- src/Sonarr.Api.V3/Queue/QueueResource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sonarr.Api.V3/Queue/QueueResource.cs b/src/Sonarr.Api.V3/Queue/QueueResource.cs index 94dbcb127..e56ee2511 100644 --- a/src/Sonarr.Api.V3/Queue/QueueResource.cs +++ b/src/Sonarr.Api.V3/Queue/QueueResource.cs @@ -52,7 +52,7 @@ namespace Sonarr.Api.V3.Queue } var customFormats = model.RemoteEpisode?.CustomFormats; - var customFormatScore = model.Series.QualityProfile.Value.CalculateCustomFormatScore(customFormats); + var customFormatScore = model.Series?.QualityProfile?.Value?.CalculateCustomFormatScore(customFormats) ?? 0; return new QueueResource {