[PR #4592] [CLOSED] [Multiple Fixes] Null reference exceptions #10181

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4592
Author: @BaronGreenback
Created: 11/27/2020
Status: Closed

Base: masterHead: PossibleNullReferenceExceptions


📝 Commits (5)

📊 Changes

31 files changed (+136 additions, -63 deletions)

View changed files

📝 Emby.Dlna/DlnaManager.cs (+1 -1)
📝 Emby.Server.Implementations/ApplicationHost.cs (+5 -5)
📝 Emby.Server.Implementations/IO/ManagedFileSystem.cs (+1 -1)
📝 Emby.Server.Implementations/Library/LibraryManager.cs (+4 -0)
📝 Emby.Server.Implementations/Library/MediaSourceManager.cs (+2 -2)
📝 Emby.Server.Implementations/Library/Resolvers/Movies/BoxSetResolver.cs (+1 -1)
📝 Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs (+10 -6)
📝 Emby.Server.Implementations/LiveTv/LiveTvManager.cs (+23 -5)
📝 Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs (+4 -1)
📝 Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunUdpStream.cs (+7 -1)
📝 Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs (+1 -1)
📝 Emby.Server.Implementations/Session/SessionWebSocketListener.cs (+1 -1)
📝 Emby.Server.Implementations/SyncPlay/SyncPlayManager.cs (+1 -1)
📝 Emby.Server.Implementations/Updates/InstallationManager.cs (+1 -1)
📝 Jellyfin.Api/Controllers/DashboardController.cs (+1 -1)
📝 Jellyfin.Api/Helpers/DynamicHlsHelper.cs (+3 -3)
📝 Jellyfin.Server.Implementations/Users/UserManager.cs (+3 -3)
📝 Jellyfin.Server/Program.cs (+1 -1)
📝 MediaBrowser.Common/Extensions/HttpContextExtensions.cs (+1 -1)
📝 MediaBrowser.Common/Plugins/LocalPlugin.cs (+3 -3)

...and 11 more files

📄 Description

Spent some time with ReSharper to go through the code looking for possible null reference exceptions.

Apart from the Path.X possibilities - these are fixes for what it threw up, based up possible null return values and nullable variables.

Some are belt and braces, and may no longer be needed after nullable.

Some might be deemed to be extreme and unneeded.


🔄 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/4592 **Author:** [@BaronGreenback](https://github.com/BaronGreenback) **Created:** 11/27/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `PossibleNullReferenceExceptions` --- ### 📝 Commits (5) - [`dc1cec9`](https://github.com/jellyfin/jellyfin/commit/dc1cec9fd82af8742cf2b20f2da1fdf1de6bd41d) Merge pull request #98 from jellyfin/master - [`44348ce`](https://github.com/jellyfin/jellyfin/commit/44348ce03e94c0995a0e271817d57029acdc97ae) Possible System.NullExceptions - [`026f5b8`](https://github.com/jellyfin/jellyfin/commit/026f5b8394e4af535068bd33ed3685b2349c503f) more - [`2cd728e`](https://github.com/jellyfin/jellyfin/commit/2cd728ee3799102c12225db771dee4d860f822e0) Few more. - [`dd65d30`](https://github.com/jellyfin/jellyfin/commit/dd65d307d504dc9fd381d045ecb0b48117c41539) Update JsonGuidConverter.cs ### 📊 Changes **31 files changed** (+136 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Dlna/DlnaManager.cs` (+1 -1) 📝 `Emby.Server.Implementations/ApplicationHost.cs` (+5 -5) 📝 `Emby.Server.Implementations/IO/ManagedFileSystem.cs` (+1 -1) 📝 `Emby.Server.Implementations/Library/LibraryManager.cs` (+4 -0) 📝 `Emby.Server.Implementations/Library/MediaSourceManager.cs` (+2 -2) 📝 `Emby.Server.Implementations/Library/Resolvers/Movies/BoxSetResolver.cs` (+1 -1) 📝 `Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs` (+10 -6) 📝 `Emby.Server.Implementations/LiveTv/LiveTvManager.cs` (+23 -5) 📝 `Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs` (+4 -1) 📝 `Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunUdpStream.cs` (+7 -1) 📝 `Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs` (+1 -1) 📝 `Emby.Server.Implementations/Session/SessionWebSocketListener.cs` (+1 -1) 📝 `Emby.Server.Implementations/SyncPlay/SyncPlayManager.cs` (+1 -1) 📝 `Emby.Server.Implementations/Updates/InstallationManager.cs` (+1 -1) 📝 `Jellyfin.Api/Controllers/DashboardController.cs` (+1 -1) 📝 `Jellyfin.Api/Helpers/DynamicHlsHelper.cs` (+3 -3) 📝 `Jellyfin.Server.Implementations/Users/UserManager.cs` (+3 -3) 📝 `Jellyfin.Server/Program.cs` (+1 -1) 📝 `MediaBrowser.Common/Extensions/HttpContextExtensions.cs` (+1 -1) 📝 `MediaBrowser.Common/Plugins/LocalPlugin.cs` (+3 -3) _...and 11 more files_ </details> ### 📄 Description Spent some time with ReSharper to go through the code looking for possible null reference exceptions. Apart from the Path.X possibilities - these are fixes for what it threw up, based up possible null return values and nullable variables. Some are belt and braces, and may no longer be needed after nullable. Some might be deemed to be extreme and unneeded. --- <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:15:29 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10181