mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Fixed: Null reference processing failed import for unknown album
(cherry picked from commit be09385c9d7526de7d3f03ca25c5289cc8ad4a4f)
This commit is contained in:
parent
1374fb1a32
commit
47d0acaa1a
1 changed files with 10 additions and 0 deletions
|
@ -184,6 +184,11 @@ namespace NzbDrone.Core.History
|
||||||
|
|
||||||
public void Handle(AlbumImportIncompleteEvent message)
|
public void Handle(AlbumImportIncompleteEvent message)
|
||||||
{
|
{
|
||||||
|
if (message.TrackedDownload.RemoteAlbum == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var album in message.TrackedDownload.RemoteAlbum.Albums)
|
foreach (var album in message.TrackedDownload.RemoteAlbum.Albums)
|
||||||
{
|
{
|
||||||
var history = new EntityHistory
|
var history = new EntityHistory
|
||||||
|
@ -266,6 +271,11 @@ namespace NzbDrone.Core.History
|
||||||
|
|
||||||
public void Handle(DownloadCompletedEvent message)
|
public void Handle(DownloadCompletedEvent message)
|
||||||
{
|
{
|
||||||
|
if (message.TrackedDownload.RemoteAlbum == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var album in message.TrackedDownload.RemoteAlbum.Albums)
|
foreach (var album in message.TrackedDownload.RemoteAlbum.Albums)
|
||||||
{
|
{
|
||||||
var history = new EntityHistory
|
var history = new EntityHistory
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue