This commit is contained in:
TidusJar 2019-02-25 08:42:06 +00:00
parent 8be3ef205a
commit 6a36fa3974

View file

@ -52,7 +52,7 @@ namespace Ombi.Notifications.Agents
private void AddOtherInformation(NotificationOptions model, NotificationMessage notification, private void AddOtherInformation(NotificationOptions model, NotificationMessage notification,
NotificationMessageContent parsed) NotificationMessageContent parsed)
{ {
notification.Other.Add("image", parsed.Image); notification.Other.Add("image", parsed?.Image ?? string.Empty);
notification.Other.Add("title", model.RequestType == RequestType.Movie ? MovieRequest.Title : TvRequest.Title); notification.Other.Add("title", model.RequestType == RequestType.Movie ? MovieRequest.Title : TvRequest.Title);
} }