Skip to content

Commit

Permalink
Fix checking for SameTorrent when the indexer is null
Browse files Browse the repository at this point in the history
(cherry picked from commit 3ece1533d86c559ec1bf7689c908802f31e38e91)
  • Loading branch information
mynameisbogdan committed May 18, 2023
1 parent d90a6eb commit 9ba1caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NzbDrone.Core/Blocklisting/BlocklistService.cs
Expand Up @@ -125,7 +125,7 @@ private bool SameTorrent(Blocklist item, TorrentInfo release)
return release.InfoHash.Equals(item.TorrentInfoHash);
}

return item.Indexer.Equals(release.Indexer, StringComparison.InvariantCultureIgnoreCase);
return HasSameIndexer(item, release.Indexer);
}

private bool HasSameIndexer(Blocklist item, string indexer)
Expand Down

0 comments on commit 9ba1caa

Please sign in to comment.