aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-06-27 16:42:26 -0400
committerPatrick Barron <barronpm@gmail.com>2021-06-27 16:42:26 -0400
commitbbac9ff67e60d243dbd05be60abfcf13c295cd84 (patch)
treefdf34a0f712e3feb97b014eb51a90172c837e88d /Emby.Server.Implementations/Session/SessionManager.cs
parentd3e02e918d5586b0b8c74f1b79a13b76a978defd (diff)
GetDeviceOptions always returns an instance of DeviceOptions
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index 40a346e95..ac730fa43 100644
--- a/Emby.Server.Implementations/Session/SessionManager.cs
+++ b/Emby.Server.Implementations/Session/SessionManager.cs
@@ -535,7 +535,7 @@ namespace Emby.Server.Implementations.Session
}
var deviceOptions = await _deviceManager.GetDeviceOptions(deviceId).ConfigureAwait(false);
- if (string.IsNullOrEmpty(deviceOptions?.CustomName))
+ if (string.IsNullOrEmpty(deviceOptions.CustomName))
{
sessionInfo.DeviceName = deviceName;
}