mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #16150] Fix nullref in Season.GetEpisodes when the season is detached from a series #14545
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/16150
Author: @dfederm
Created: 2/1/2026
Status: 🔄 Open
Base:
master← Head:nullref-season-series📝 Commits (1)
d2a5670Fix nullref in Season.GetEpisodes when the season is detached from a series📊 Changes
1 file changed (+6 additions, -1 deletions)
View changed files
📝
MediaBrowser.Controller/Entities/TV/Season.cs(+6 -1)📄 Description
Fixes #16061
This is a simple fix for a nullref. Other code in the Season class also has null checks for the Season, so there's existing precedent for detached seasons.
I also decided to change the
public List<BaseItem> GetEpisodes()overload to just call another overload instead of duplicating logic.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.