Correctly handle devices without custom names

This commit is contained in:
Patrick Barron 2021-06-18 16:57:46 -04:00
parent 37a8a82ac5
commit 373155a063

View file

@ -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;
}