Fix issue when movie file is null.

pull/2/head
Leonardo Galli 8 years ago
parent a3d9fb1c20
commit aa9537c201

@ -44,7 +44,7 @@ namespace NzbDrone.Core.MediaFiles
var existingFile = localEpisode.Movie.MovieFile; var existingFile = localEpisode.Movie.MovieFile;
existingFile.LazyLoad(); existingFile.LazyLoad();
if (existingFile.IsLoaded) if (existingFile.IsLoaded && existingFile.Value != null)
{ {
var file = existingFile.Value; var file = existingFile.Value;
var episodeFilePath = Path.Combine(localEpisode.Movie.Path, file.RelativePath); var episodeFilePath = Path.Combine(localEpisode.Movie.Path, file.RelativePath);

Loading…
Cancel
Save