mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-19 09:38:05 +00:00
add device null check
This commit is contained in:
@@ -432,9 +432,12 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
|
||||
device = device ?? _deviceManager.GetDevice(deviceId);
|
||||
|
||||
if (!string.IsNullOrEmpty(device.CustomName))
|
||||
if (device != null)
|
||||
{
|
||||
deviceName = device.CustomName;
|
||||
if (!string.IsNullOrEmpty(device.CustomName))
|
||||
{
|
||||
deviceName = device.CustomName;
|
||||
}
|
||||
}
|
||||
|
||||
sessionInfo.DeviceName = deviceName;
|
||||
|
||||
Reference in New Issue
Block a user