mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
Fix nullability errors in Emby.Server.Implementations
This commit is contained in:
@@ -81,6 +81,11 @@ namespace Emby.Server.Implementations.Cryptography
|
||||
}
|
||||
|
||||
using var h = HashAlgorithm.Create(hashMethod);
|
||||
if (h == null)
|
||||
{
|
||||
throw new NullReferenceException(nameof(h));
|
||||
}
|
||||
|
||||
if (salt.Length == 0)
|
||||
{
|
||||
return h.ComputeHash(bytes);
|
||||
|
||||
Reference in New Issue
Block a user