[PR #6788] [MERGED] Prevent additional errors on startup/shutdown #11126

Closed
opened 2026-02-07 06:32:55 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/6788
Author: @crobibero
Created: 11/6/2021
Status: Merged
Merged: 2/4/2022
Merged by: @Bond-009

Base: masterHead: startup-ex


📝 Commits (1)

  • e37267d Prevent additional errors on startup/shutdown

📊 Changes

1 file changed (+9 additions, -5 deletions)

View changed files

📝 Jellyfin.Server/Program.cs (+9 -5)

📄 Description

Prevent an exception from being thrown if startup fails.
As seen in https://github.com/jellyfin/jellyfin/issues/6776

[09:31:18] [FTL] [1] Main: Unhandled Exception
System.ArgumentNullException: Value cannot be null. (Parameter 'provider')
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Emby.Server.Implementations.ApplicationHost.Resolve[T]() in /home/crobibero/Code/jellyfin/Emby.Server.Implementations/ApplicationHost.cs:line 408
   at Jellyfin.Server.Program.StartApp(StartupOptions options) in /home/crobibero/Code/jellyfin/Jellyfin.Server/Program.cs:line 231
   at Jellyfin.Server.Program.<Main>(String[] args)

🔄 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/6788 **Author:** [@crobibero](https://github.com/crobibero) **Created:** 11/6/2021 **Status:** ✅ Merged **Merged:** 2/4/2022 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `startup-ex` --- ### 📝 Commits (1) - [`e37267d`](https://github.com/jellyfin/jellyfin/commit/e37267d2ec418f823ab3334146a27e691d130f21) Prevent additional errors on startup/shutdown ### 📊 Changes **1 file changed** (+9 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server/Program.cs` (+9 -5) </details> ### 📄 Description Prevent an exception from being thrown if startup fails. As seen in https://github.com/jellyfin/jellyfin/issues/6776 ``` [09:31:18] [FTL] [1] Main: Unhandled Exception System.ArgumentNullException: Value cannot be null. (Parameter 'provider') at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at Emby.Server.Implementations.ApplicationHost.Resolve[T]() in /home/crobibero/Code/jellyfin/Emby.Server.Implementations/ApplicationHost.cs:line 408 at Jellyfin.Server.Program.StartApp(StartupOptions options) in /home/crobibero/Code/jellyfin/Jellyfin.Server/Program.cs:line 231 at Jellyfin.Server.Program.<Main>(String[] args) ``` --- <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 06:32:55 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11126