Pārlūkot izejas kodu

Correctly handle devices without custom names

Patrick Barron 4 gadi atpakaļ
vecāks
revīzija
373155a063

+ 1 - 1
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;
             }