aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
diff options
context:
space:
mode:
authorTavares André <tavares_and@hotmail.com>2015-05-19 18:19:56 +0200
committerTavares André <tavares_and@hotmail.com>2015-05-19 18:19:56 +0200
commit33f633d37a5709230ab94773077bca02a0cd317b (patch)
tree3c898fa42a7b67346f81df53d80bc745b2a1d3db /MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
parent132a40a673f95a5b0e4722491abcd6a7db6236c8 (diff)
parent5bee01b5bb3dc677a20ed844666645927937cdc5 (diff)
Merge branch 'dev' of https://github.com/MediaBrowser/MediaBrowser into dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/Devices/DeviceManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Devices/DeviceManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs b/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
index b65b7d11b..fb64a6d28 100644
--- a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
+++ b/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
@@ -233,6 +233,12 @@ namespace MediaBrowser.Server.Implementations.Devices
}
var user = _userManager.GetUserById(userId);
+
+ if (user == null)
+ {
+ throw new ArgumentException("user not found");
+ }
+
if (!CanAccessDevice(user.Policy, deviceId))
{
var capabilities = GetCapabilities(deviceId);