Merge pull request #378 from cvium/fix_dlna_user_id_null

Fix ArgumentNullException in DLNA streams
This commit is contained in:
Joshua M. Boniface 2019-01-04 15:10:50 -05:00 committed by GitHub
commit c13c326171

View File

@ -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);
}