diff options
| author | Patrick Barron <barronpm@gmail.com> | 2021-06-18 16:57:46 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2021-06-18 16:57:46 -0400 |
| commit | 373155a06324140fe8b0ff95d4f58c7a498db2e2 (patch) | |
| tree | c42029eefc6edc4ac31d7afca81ff324efa11502 /Emby.Server.Implementations/Session/SessionManager.cs | |
| parent | 37a8a82ac54a795402006b116a9ef5ece4a3eb6c (diff) | |
Correctly handle devices without custom names
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Session/SessionManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index 92ef65bf1..b8c778690 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -532,7 +532,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; } |
