Map seed configuration on release only when it's not null

Fixes #1720
This commit is contained in:
Bogdan
2023-06-06 23:12:52 +03:00
parent f5b57db753
commit d05128ca33

View File

@@ -62,7 +62,12 @@ namespace NzbDrone.Core.Download
}
// Get the seed configuration for this release.
((TorrentInfo)release).SeedConfiguration = _seedConfigProvider.GetSeedConfiguration(release);
var seedConfiguration = _seedConfigProvider.GetSeedConfiguration(release);
if (seedConfiguration != null)
{
((TorrentInfo)release).SeedConfiguration = _seedConfigProvider.GetSeedConfiguration(release);
}
var indexer = _indexerFactory.GetInstance(_indexerFactory.Get(release.IndexerId));