diff --git a/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsRequestGenerator.cs index f642fb939..7ce266e66 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsRequestGenerator.cs @@ -19,7 +19,7 @@ namespace NzbDrone.Core.Indexers.HDBits var pageableRequests = new IndexerPageableRequestChain(); var query = new TorrentQuery(); - if (searchCriteria.Categories.Length > 0) + if (searchCriteria.Categories?.Length > 0) { query.Category = Capabilities.Categories.MapTorznabCapsToTrackers(searchCriteria.Categories).Select(int.Parse).ToArray(); } @@ -82,7 +82,7 @@ namespace NzbDrone.Core.Indexers.HDBits var pageableRequests = new IndexerPageableRequestChain(); var query = new TorrentQuery(); - if (searchCriteria.Categories.Length > 0) + if (searchCriteria.Categories?.Length > 0) { query.Category = Capabilities.Categories.MapTorznabCapsToTrackers(searchCriteria.Categories).Select(int.Parse).ToArray(); } @@ -117,7 +117,7 @@ namespace NzbDrone.Core.Indexers.HDBits var pageableRequests = new IndexerPageableRequestChain(); var query = new TorrentQuery(); - if (searchCriteria.Categories.Length > 0) + if (searchCriteria.Categories?.Length > 0) { query.Category = Capabilities.Categories.MapTorznabCapsToTrackers(searchCriteria.Categories).Select(int.Parse).ToArray(); }