fix: add null check for non-existent program in GetProgram (#16858)

fix: add null check for non-existent program in GetProgram
This commit is contained in:
Bruno Ferreira
2026-05-17 09:01:39 -03:00
committed by GitHub
parent ed3c62b66e
commit 2f8bf92fb8
2 changed files with 14 additions and 1 deletions

View File

@@ -178,6 +178,11 @@ namespace Jellyfin.LiveTv
{
var program = _libraryManager.GetItemById(id);
if (program is null)
{
return null;
}
var dto = _dtoService.GetBaseItemDto(program, new DtoOptions(), user);
var list = new List<(BaseItemDto ItemDto, string ExternalId, string ExternalSeriesId)>