diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-01-04 15:10:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-04 15:10:50 -0500 |
| commit | c13c326171c28a2a15b78cf2b67e74665657c532 (patch) | |
| tree | 68871b63162ac94ec053d905e3386de1618ba5ae | |
| parent | c39ca7dba3ea7c2b7ed0ab7e5207a72da75eecc8 (diff) | |
| parent | efa3a234e912b9c2740d24f78c16ade07e9c5ce5 (diff) | |
Merge pull request #378 from cvium/fix_dlna_user_id_null
Fix ArgumentNullException in DLNA streams
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index af56f6382..28e75bf55 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -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); } |
