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

Fixes #7213
pull/7220/head
Qstick 2 years ago
parent 36119facf0
commit c2328e4b79

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

@ -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, "");
}
}
}

Loading…
Cancel
Save