mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Correctly handle devices without custom names
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user