Fix checking for SameTorrent when the indexer is null

This commit is contained in:
Bogdan 2023-05-01 07:57:42 +03:00 committed by Mark McDowall
parent f32a3cd41c
commit 3ece1533d8
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ namespace NzbDrone.Core.Blocklisting
return release.InfoHash.Equals(item.TorrentInfoHash); 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) private bool HasSameIndexer(Blocklist item, string indexer)