mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-21 08:06:58 +01:00
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:
@@ -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)>
|
||||
|
||||
Reference in New Issue
Block a user