Fixed: Manual Interaction Required with possible null movie

Prevent a NullRef when the notification is sent due to an invalid movie title

Fixes #10053
pull/10043/head
Bogdan 6 months ago
parent e8c925274a
commit 0c654377f4

@ -254,7 +254,7 @@ namespace NzbDrone.Core.Notifications
public void Handle(ManualInteractionRequiredEvent message) public void Handle(ManualInteractionRequiredEvent message)
{ {
var movie = message.RemoteMovie.Movie; var movie = message.RemoteMovie?.Movie;
var mess = ""; var mess = "";
if (movie != null) if (movie != null)
@ -276,7 +276,7 @@ namespace NzbDrone.Core.Notifications
{ {
Message = mess, Message = mess,
Movie = movie, Movie = movie,
Quality = message.RemoteMovie.ParsedMovieInfo.Quality, Quality = message.RemoteMovie?.ParsedMovieInfo.Quality,
RemoteMovie = message.RemoteMovie, RemoteMovie = message.RemoteMovie,
TrackedDownload = message.TrackedDownload, TrackedDownload = message.TrackedDownload,
DownloadClientInfo = message.TrackedDownload.DownloadItem?.DownloadClientInfo, DownloadClientInfo = message.TrackedDownload.DownloadItem?.DownloadClientInfo,

Loading…
Cancel
Save