Fixed: Error with deluge when it doesn’t report a Hash.

Fixes #2329
This commit is contained in:
Leonardo Galli 2018-02-07 15:59:14 +01:00
commit d2f99f1330

View file

@ -97,7 +97,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
foreach (var torrent in torrents)
{
var item = new DownloadClientItem();
item.DownloadId = torrent.Hash.ToUpper();
item.DownloadId = torrent.Hash?.ToUpper();
item.Title = torrent.Name;
item.Category = Settings.MovieCategory;