aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/UserManager.cs
diff options
context:
space:
mode:
authorLiggy <Liggy@users.noreply.github.com>2019-02-20 14:24:23 +0100
committerGitHub <noreply@github.com>2019-02-20 14:24:23 +0100
commit13bfe5093ec0d198a23d5454f0b7d8f5969a7dfb (patch)
tree001a76a3321476095898ffc8eddf2e3e72e01dc4 /Emby.Server.Implementations/Library/UserManager.cs
parent5917e91447ee0d8db3055614aebf27c03ea91752 (diff)
parent99bed9a9c3791bcff648029088d766f1dfde3a96 (diff)
Merge branch 'master' into populate-extras
Diffstat (limited to 'Emby.Server.Implementations/Library/UserManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/UserManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.cs
index 15cbbdb5a..dfef8e997 100644
--- a/Emby.Server.Implementations/Library/UserManager.cs
+++ b/Emby.Server.Implementations/Library/UserManager.cs
@@ -168,9 +168,9 @@ namespace Emby.Server.Implementations.Library
/// <exception cref="ArgumentNullException"></exception>
public User GetUserById(Guid id)
{
- if (id.Equals(Guid.Empty))
+ if (id == Guid.Empty)
{
- throw new ArgumentNullException(nameof(id));
+ throw new ArgumentException(nameof(id), "Guid can't be empty");
}
return Users.FirstOrDefault(u => u.Id == id);