[PR #16150] Fix nullref in Season.GetEpisodes when the season is detached from a series #14545

Open
opened 2026-02-07 07:31:32 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/16150
Author: @dfederm
Created: 2/1/2026
Status: 🔄 Open

Base: masterHead: nullref-season-series


📝 Commits (1)

  • d2a5670 Fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/16150 **Author:** [@dfederm](https://github.com/dfederm) **Created:** 2/1/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `nullref-season-series` --- ### 📝 Commits (1) - [`d2a5670`](https://github.com/jellyfin/jellyfin/commit/d2a5670a7f893a9e980ca2b1053cd0a3a89cf56b) Fix nullref in Season.GetEpisodes when the season is detached from a series ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Controller/Entities/TV/Season.cs` (+6 -1) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:31:32 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14545