[PR #15415] [CLOSED] Fix System.NullReferenceException when people's role is null #14304

Closed
opened 2026-02-07 07:27:40 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/15415
Author: @IceStormNG
Created: 11/6/2025
Status: Closed

Base: release-10.11.zHead: fix-nullreference-role-null


📝 Commits (10+)

  • 1a1a24c Bump version to 10.12.0
  • c8ad861 Translated using Weblate (Marathi)
  • 96b7fc0 Translated using Weblate (Spanish (Mexico))
  • f58b486 Translated using Weblate (Hindi)
  • d167d59 Translated using Weblate (Punjabi)
  • 0e3b665 Update github/codeql-action action to v4.31.0
  • 788f090 Update GitHub Artifact Actions
  • c5affbb Translated using Weblate (Korean)
  • d859184 Merge pull request #15192 from jellyfin/renovate/major-github-artifact-actions
  • 3ff516a Merge 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 null for 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:

[2025-11-04 11:43:15.293 +01:00] [ERR] [25] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "Probe Provider"
System.NullReferenceException: Object reference not set to an instance of an object.
   at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.FetchPeople(Video video, MediaInfo data, MetadataRefreshOptions options)
   at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.Fetch(Video video, CancellationToken cancellationToken, MediaInfo mediaInfo, BlurayDiscInfo blurayInfo, MetadataRefreshOptions options)
   at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](T item, MetadataRefreshOptions options, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, TItemType item, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken)

🔄 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/15415 **Author:** [@IceStormNG](https://github.com/IceStormNG) **Created:** 11/6/2025 **Status:** ❌ Closed **Base:** `release-10.11.z` ← **Head:** `fix-nullreference-role-null` --- ### 📝 Commits (10+) - [`1a1a24c`](https://github.com/jellyfin/jellyfin/commit/1a1a24cfffb1e48577c177dd1642c46d0eb39dc0) Bump version to 10.12.0 - [`c8ad861`](https://github.com/jellyfin/jellyfin/commit/c8ad861590321198a3c7ca16121822672372c1ca) Translated using Weblate (Marathi) - [`96b7fc0`](https://github.com/jellyfin/jellyfin/commit/96b7fc0ac0767a60be272975b0a45dbadeec5701) Translated using Weblate (Spanish (Mexico)) - [`f58b486`](https://github.com/jellyfin/jellyfin/commit/f58b4860f7d295ea39ec64668e133579ac6154f9) Translated using Weblate (Hindi) - [`d167d59`](https://github.com/jellyfin/jellyfin/commit/d167d59c23765d2cc403fec778b53ea1b3dbe40d) Translated using Weblate (Punjabi) - [`0e3b665`](https://github.com/jellyfin/jellyfin/commit/0e3b6652b38dd8f7a2b42a1d4804f6feb1680440) Update github/codeql-action action to v4.31.0 - [`788f090`](https://github.com/jellyfin/jellyfin/commit/788f090f27936db0f665a3fd9fce3b27549dd337) Update GitHub Artifact Actions - [`c5affbb`](https://github.com/jellyfin/jellyfin/commit/c5affbbf71f9b8582d7ac9c88b294f50cc1a4fc7) Translated using Weblate (Korean) - [`d859184`](https://github.com/jellyfin/jellyfin/commit/d8591840f33890f2be1a240e4c823910f40ea455) Merge pull request #15192 from jellyfin/renovate/major-github-artifact-actions - [`3ff516a`](https://github.com/jellyfin/jellyfin/commit/3ff516a4300b68cf2987875b76bf16836a07b002) Merge pull request #15191 from jellyfin/renovate/ci-deps ### 📊 Changes **61 files changed** (+545 additions, -408 deletions) <details> <summary>View changed files</summary> 📝 `.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_ </details> ### 📄 Description If "role" is `null` for 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: ``` [2025-11-04 11:43:15.293 +01:00] [ERR] [25] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "Probe Provider" System.NullReferenceException: Object reference not set to an instance of an object. at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.FetchPeople(Video video, MediaInfo data, MetadataRefreshOptions options) at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.Fetch(Video video, CancellationToken cancellationToken, MediaInfo mediaInfo, BlurayDiscInfo blurayInfo, MetadataRefreshOptions options) at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](T item, MetadataRefreshOptions options, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, TItemType item, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken) ``` --- <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:27:40 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14304