Fixed: Don't die if Plex watchlist guid node is missing or null

Fixes #7213
This commit is contained in:
Qstick 2022-04-11 08:30:39 -05:00
parent 36119facf0
commit c2328e4b79
2 changed files with 6 additions and 1 deletions

View File

@ -35,6 +35,11 @@
"title": "Avengers: Endgame",
"year": 2019,
"Guid": []
},
{
"type": "movie",
"title": "Avengers",
"year": 2005
}
]
}

View File

@ -73,7 +73,7 @@ namespace NzbDrone.Core.ImportLists.Plex
{
var scheme = $"{prefix}://";
return guids.FirstOrDefault((guid) => guid.Id.StartsWith(scheme))?.Id.Replace(scheme, "");
return guids?.FirstOrDefault((guid) => guid.Id.StartsWith(scheme))?.Id.Replace(scheme, "");
}
}
}