mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #15415] [CLOSED] Fix System.NullReferenceException when people's role is null #14304
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/15415
Author: @IceStormNG
Created: 11/6/2025
Status: ❌ Closed
Base:
release-10.11.z← Head:fix-nullreference-role-null📝 Commits (10+)
1a1a24cBump version to 10.12.0c8ad861Translated using Weblate (Marathi)96b7fc0Translated using Weblate (Spanish (Mexico))f58b486Translated using Weblate (Hindi)d167d59Translated using Weblate (Punjabi)0e3b665Update github/codeql-action action to v4.31.0788f090Update GitHub Artifact Actionsc5affbbTranslated using Weblate (Korean)d859184Merge pull request #15192 from jellyfin/renovate/major-github-artifact-actions3ff516aMerge pull request #15191 from jellyfin/renovate/ci-deps📊 Changes
61 files changed (+545 additions, -408 deletions)
View changed files
📝
.github/CODEOWNERS(+11 -4)📝
.github/workflows/ci-codeql-analysis.yml(+3 -3)📝
.github/workflows/ci-compat.yml(+4 -4)📝
.github/workflows/ci-openapi.yml(+6 -6)📝
.github/workflows/ci-tests.yml(+1 -1)📝
Directory.Packages.props(+2 -2)📝
Emby.Naming/Emby.Naming.csproj(+1 -1)📝
Emby.Naming/TV/SeasonPathParser.cs(+7 -5)📝
Emby.Server.Implementations/Chapters/ChapterManager.cs(+4 -2)📝
Emby.Server.Implementations/IO/ManagedFileSystem.cs(+24 -27)📝
Emby.Server.Implementations/Library/DotIgnoreIgnoreRule.cs(+7 -2)📝
Emby.Server.Implementations/Library/MusicManager.cs(+3 -1)📝
Emby.Server.Implementations/Localization/Core/es-MX.json(+1 -1)📝
Emby.Server.Implementations/Localization/Core/gsw.json(+1 -1)📝
Emby.Server.Implementations/Localization/Core/hi.json(+8 -1)📝
Emby.Server.Implementations/Localization/Core/ko.json(+3 -1)📝
Emby.Server.Implementations/Localization/Core/mn.json(+3 -3)📝
Emby.Server.Implementations/Localization/Core/mr.json(+6 -1)📝
Emby.Server.Implementations/Localization/Core/pa.json(+4 -2)📝
Emby.Server.Implementations/Localization/Core/pt-PT.json(+1 -1)...and 41 more files
📄 Description
If "role" is
nullfor a person in a movie record (TMDB Metadata), the movie will fail to import properly as it crashes here.In this case the movie entry will be created and it will also load pictures, but it won't show any streams as the import process stops in the middle, therefore, the movie cannot be played.
Changes
Check whether role is null and only trim if it has a value.
Issues
I haven't seen someone else report this issue yet. It happened mostly with some German movies. This issue happend since the 10.11 release.
The log showed this:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.