From d7a054f6379ad067e050b33b7c459d8764c2b675 Mon Sep 17 00:00:00 2001 From: Nicholas Landriault Date: Tue, 15 May 2018 18:17:57 -0400 Subject: [PATCH] Deluge torrents that don't have a hash are skipped In some cases torrents in Deluge may not have a hash (ex: https://torguard.net/checkmytorrentipaddress.php). This causes Sonarr to fail when loading the torrents from Deluge with error message: 'Unable to communicate with deluge. Object reference not set to an instance of an object'. This commit simply causes Sonarr to skip over the torrent with the missing hash and continue loading torrents that do have hashes. --- src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs index 54848872b..926ca7f05 100644 --- a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs +++ b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs @@ -104,6 +104,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge foreach (var torrent in torrents) { + if (torrent.Hash == null) continue; var item = new DownloadClientItem(); item.DownloadId = torrent.Hash.ToUpper(); item.Title = torrent.Name;