Hopefully fixes a lot of null reference bugs in BulkImport

pull/721/head
Leonardo Galli 8 years ago
parent 85843efcb0
commit 07ff6558d1

@ -132,11 +132,17 @@ namespace NzbDrone.Api.Movie
} }
mappedMovie = _searchProxy.MapMovieToTmdbMovie(m); mappedMovie = _searchProxy.MapMovieToTmdbMovie(m);
if (mappedMovie != null)
{
mappedMovie.Monitored = true; mappedMovie.Monitored = true;
_mappedMovies.Set(f.Name, mappedMovie, TimeSpan.FromDays(2)); _mappedMovies.Set(f.Name, mappedMovie, TimeSpan.FromDays(2));
return mappedMovie; return mappedMovie;
}
return null;
}); });
return new PagingResource<MovieResource> return new PagingResource<MovieResource>

Loading…
Cancel
Save