diff options
| author | crobibero <cody@robibe.ro> | 2020-11-13 09:41:18 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-11-13 09:41:18 -0700 |
| commit | 7bf320922c095b67293c05b8d2e0ed79f1db78d7 (patch) | |
| tree | 2f49f41b3c3c66d24f55d1c9faa1639dadc022f1 /Emby.Server.Implementations/Cryptography | |
| parent | d5e2369dd6ac308e518a5a36a744a1a2dac45f70 (diff) | |
Fix nullability errors in Emby.Server.Implementations
Diffstat (limited to 'Emby.Server.Implementations/Cryptography')
| -rw-r--r-- | Emby.Server.Implementations/Cryptography/CryptographyProvider.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs b/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs index fd302d136..a48b6f356 100644 --- a/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs +++ b/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs @@ -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); |
