aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints
diff options
context:
space:
mode:
authorNiels van Velzen <nielsvanvelzen@users.noreply.github.com>2024-09-06 21:56:42 +0200
committerGitHub <noreply@github.com>2024-09-06 21:56:42 +0200
commitcc2f91b331cd51ecf238db4370b98ecdaf1ad897 (patch)
tree9acf3d94518501a279f05d2837f5cd40c5688bd3 /Emby.Server.Implementations/EntryPoints
parent9afaa6ae4ddb9c7aa109604881496344d7124b92 (diff)
parent277830855ddd9c7fa5a5db21f02d2d2f199f6cf8 (diff)
Merge pull request #12547 from Bond-009/userdatamanager
Clean up UserDataManager
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints')
-rw-r--r--Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
index 47f9dfbc8..aef02ce6b 100644
--- a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
+++ b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
@@ -133,7 +133,8 @@ namespace Emby.Server.Implementations.EntryPoints
private UserDataChangeInfo GetUserDataChangeInfo(Guid userId, List<BaseItem> changedItems)
{
- var user = _userManager.GetUserById(userId);
+ var user = _userManager.GetUserById(userId)
+ ?? throw new ArgumentException("Invalid user ID", nameof(userId));
return new UserDataChangeInfo
{