Fixed: No media info causing an error when importing files

Fixes #2945
pull/2/head
Leonardo Galli 6 years ago
parent b553d8aef6
commit 409be45a19

@ -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
};
}

Loading…
Cancel
Save