1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Fixed: Already Imported check failing for some torrent releases

This commit is contained in:
Mark McDowall
2019-04-11 17:49:09 -07:00
parent 558bbeaa34
commit 877235c8a2
2 changed files with 33 additions and 1 deletions
@@ -77,7 +77,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
{
var torrentInfo = release as TorrentInfo;
if (torrentInfo != null && torrentInfo.InfoHash.ToUpper() == lastGrabbed.DownloadId)
if (torrentInfo?.InfoHash != null && torrentInfo.InfoHash.ToUpper() == lastGrabbed.DownloadId)
{
_logger.Debug("Has same torrent hash as a grabbed and imported release");
return Decision.Reject("Has same torrent hash as a grabbed and imported release");