aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno Ferreira <brunoferreiradevv@gmail.com>2026-05-17 09:01:39 -0300
committerGitHub <noreply@github.com>2026-05-17 14:01:39 +0200
commit2f8bf92fb80c8bf8568e8b22aba31a839b8862d3 (patch)
tree68ab86e38a1847b642c3c0e7f746dc33cb0d98f5 /src
parented3c62b66ed8968b643e7d20ebcc2b21f3ca5f95 (diff)
fix: add null check for non-existent program in GetProgram (#16858)
fix: add null check for non-existent program in GetProgram
Diffstat (limited to 'src')
-rw-r--r--src/Jellyfin.LiveTv/LiveTvManager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Jellyfin.LiveTv/LiveTvManager.cs b/src/Jellyfin.LiveTv/LiveTvManager.cs
index 2abc8a8c09..173d3c3e8e 100644
--- a/src/Jellyfin.LiveTv/LiveTvManager.cs
+++ b/src/Jellyfin.LiveTv/LiveTvManager.cs
@@ -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)>