From 409be45a19079ec557f71c8017c3467a8d61f8da Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Mon, 6 Aug 2018 19:42:33 +0200 Subject: [PATCH] Fixed: No media info causing an error when importing files Fixes #2945 --- src/NzbDrone.Core/Parser/ParsingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Parser/ParsingService.cs b/src/NzbDrone.Core/Parser/ParsingService.cs index f8842e4b6..8665fe543 100644 --- a/src/NzbDrone.Core/Parser/ParsingService.cs +++ b/src/NzbDrone.Core/Parser/ParsingService.cs @@ -188,7 +188,7 @@ namespace NzbDrone.Core.Parser Path = filename, ParsedMovieInfo = enhanced, ExistingFile = movie.Path.IsParentPath(filename), - MediaInfo = helpers.FirstOrDefault(h => h.GetType() == typeof(MediaInfoModel)) as MediaInfoModel + MediaInfo = helpers.FirstOrDefault(h => h?.GetType() == typeof(MediaInfoModel)) as MediaInfoModel }; }