From ccc8d8002f62efb2eba753b94abfdee48f21f453 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 7 Nov 2022 18:58:40 -0800 Subject: [PATCH] Fixed: Testing SABnzbd when no categories are configured (cherry picked from commit 0e31281828c737e3f6eecbb870960194888a970a) --- .../Download/Clients/Sabnzbd/SabnzbdCategory.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdCategory.cs b/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdCategory.cs index 61b5f9228..e25a91701 100644 --- a/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdCategory.cs +++ b/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdCategory.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Newtonsoft.Json; using NzbDrone.Common.Disk; using NzbDrone.Core.Download.Clients.Sabnzbd.JsonConverters; @@ -7,10 +7,14 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd { public class SabnzbdConfig { - public SabnzbdConfigMisc Misc { get; set; } + public SabnzbdConfig() + { + Categories = new List(); + Servers = new List(); + } + public SabnzbdConfigMisc Misc { get; set; } public List Categories { get; set; } - public List Servers { get; set; } }