mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
Fix nullref exception and added logging
This commit is contained in:
@@ -1726,6 +1726,7 @@ namespace Emby.Server.Implementations.Session
|
||||
string.Equals(i.Client, client));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public SessionInfo GetSessionByAuthenticationToken(AuthenticationInfo info, string deviceId, string remoteEndpoint, string appVersion)
|
||||
{
|
||||
if (info == null)
|
||||
@@ -1733,7 +1734,7 @@ namespace Emby.Server.Implementations.Session
|
||||
throw new ArgumentNullException(nameof(info));
|
||||
}
|
||||
|
||||
var user = info.UserId.Equals(Guid.Empty)
|
||||
var user = info.UserId == Guid.Empty
|
||||
? null
|
||||
: _userManager.GetUserById(info.UserId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user