mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-19 22:04:56 -04:00
Fixed: (BTN) Prevent NullRef when Result.Torrents is null
This commit is contained in:
@@ -12,7 +12,7 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
|
||||
{
|
||||
public class BroadcastheNetParser : IParseIndexerResponse
|
||||
{
|
||||
private static readonly Regex RegexProtocol = new Regex("^https?:", RegexOptions.Compiled);
|
||||
private static readonly Regex RegexProtocol = new ("^https?:", RegexOptions.Compiled);
|
||||
|
||||
public Action<IDictionary<string, string>, DateTime?> CookiesUpdater { get; set; }
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
|
||||
throw new IndexerException(indexerResponse, "Indexer API call returned an error [{0}]", jsonResponse.Error);
|
||||
}
|
||||
|
||||
if (jsonResponse.Result.Results == 0)
|
||||
if (jsonResponse.Result.Results == 0 || jsonResponse.Result?.Torrents?.Values == null)
|
||||
{
|
||||
return results;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user