mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
Convert NullReferenceException to ResourceNotFoundException
This commit is contained in:
@@ -62,7 +62,7 @@ namespace Jellyfin.Server.Implementations.Users
|
||||
|
||||
if (spr == null)
|
||||
{
|
||||
throw new NullReferenceException(nameof(spr));
|
||||
throw new ResourceNotFoundException(nameof(spr));
|
||||
}
|
||||
|
||||
if (spr.ExpirationDate < DateTime.UtcNow)
|
||||
|
||||
Reference in New Issue
Block a user