Merge pull request #378 from cvium/fix_dlna_user_id_null
Fix ArgumentNullException in DLNA streams
This commit is contained in:
commit
c13c326171
|
@ -686,7 +686,7 @@ namespace MediaBrowser.Api.Playback
|
|||
};
|
||||
|
||||
var auth = AuthorizationContext.GetAuthorizationInfo(Request);
|
||||
if (auth.UserId != null)
|
||||
if (!auth.UserId.Equals(Guid.Empty))
|
||||
{
|
||||
state.User = UserManager.GetUserById(auth.UserId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user