Fixed: Error when valid movie file id is around, but movie file is not loaded.

pull/2948/head
Leonardo Galli 6 years ago
parent 2cfc77abc3
commit 3d1cbd1613

@ -19,7 +19,7 @@ namespace NzbDrone.Core.MediaFiles.MovieImport.Specifications
{ {
var movieFile = localMovie.Movie.MovieFile; var movieFile = localMovie.Movie.MovieFile;
if (localMovie.Movie.MovieFileId == 0) if (localMovie.Movie.MovieFileId == 0 || movieFile == null)
{ {
_logger.Debug("No existing movie file, skipping"); _logger.Debug("No existing movie file, skipping");
return Decision.Accept(); return Decision.Accept();

Loading…
Cancel
Save