mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-28 19:54:48 +03:00
Convert NullReferenceException to ResourceNotFoundException
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Jellyfin.Api.Helpers
|
||||
{
|
||||
if (_httpContextAccessor.HttpContext == null)
|
||||
{
|
||||
throw new NullReferenceException(nameof(_httpContextAccessor.HttpContext));
|
||||
throw new ResourceNotFoundException(nameof(_httpContextAccessor.HttpContext));
|
||||
}
|
||||
|
||||
using var state = await StreamingHelpers.GetStreamingState(
|
||||
|
||||
Reference in New Issue
Block a user