add device null check

pull/702/head
Luke Pulverenti 10 years ago
parent 578dec0c71
commit 87bf3bbb8f

@ -432,10 +432,13 @@ namespace MediaBrowser.Server.Implementations.Session
device = device ?? _deviceManager.GetDevice(deviceId);
if (device != null)
{
if (!string.IsNullOrEmpty(device.CustomName))
{
deviceName = device.CustomName;
}
}
sessionInfo.DeviceName = deviceName;
sessionInfo.UserId = userId;

Loading…
Cancel
Save