Browse Source

Merge pull request #378 from cvium/fix_dlna_user_id_null

Fix ArgumentNullException in DLNA streams
Joshua M. Boniface 6 years ago
parent
commit
c13c326171
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MediaBrowser.Api/Playback/BaseStreamingService.cs

+ 1 - 1
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -686,7 +686,7 @@ namespace MediaBrowser.Api.Playback
             };
             };
 
 
             var auth = AuthorizationContext.GetAuthorizationInfo(Request);
             var auth = AuthorizationContext.GetAuthorizationInfo(Request);
-            if (auth.UserId != null)
+            if (!auth.UserId.Equals(Guid.Empty))
             {
             {
                 state.User = UserManager.GetUserById(auth.UserId);
                 state.User = UserManager.GetUserById(auth.UserId);
             }
             }