Merge pull request #378 from cvium/fix_dlna_user_id_null

Fix ArgumentNullException in DLNA streams
pull/702/head
Joshua M. Boniface 6 years ago committed by GitHub
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…
Cancel
Save