Fixed: Error logged when checking if v2+ anime release is a valid upgrade

Fixes #3114
This commit is contained in:
Mark McDowall 2019-05-12 16:25:57 -07:00
parent 068eb33bf6
commit 0fe7da80ab
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
foreach (var file in subject.Episodes.Where(c => c.EpisodeFileId != 0).Select(c => c.EpisodeFile.Value))
{
if (file == null)
{
continue;
}
if (_upgradableSpecification.IsRevisionUpgrade(file.Quality, subject.ParsedEpisodeInfo.Quality))
{
if (file.ReleaseGroup.IsNullOrWhiteSpace())