mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-27 20:41:54 +00:00
Fix possible nullref
This commit is contained in:
@@ -206,11 +206,13 @@ namespace Emby.Server.Implementations.TV
|
||||
DtoOptions = dtoOptions
|
||||
}).Cast<Episode>().FirstOrDefault();
|
||||
|
||||
var userData = _userDataManager.GetUserData(user, nextEpisode);
|
||||
if (!(nextEpisode is null)) {
|
||||
var userData = _userDataManager.GetUserData(user, nextEpisode);
|
||||
|
||||
if (userData.PlaybackPositionTicks > 0)
|
||||
{
|
||||
return null;
|
||||
if (userData.PlaybackPositionTicks > 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
return nextEpisode;
|
||||
|
||||
Reference in New Issue
Block a user