Fix possible nullref

pull/4628/head
MrTimscampi 4 years ago
parent 7ba9ba4780
commit 371092cf62

@ -206,12 +206,14 @@ namespace Emby.Server.Implementations.TV
DtoOptions = dtoOptions
}).Cast<Episode>().FirstOrDefault();
if (!(nextEpisode is null)) {
var userData = _userDataManager.GetUserData(user, nextEpisode);
if (userData.PlaybackPositionTicks > 0)
{
return null;
}
}
return nextEpisode;
};

Loading…
Cancel
Save