cvium 3 years ago
parent
commit
c1c77c8762
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Emby.Dlna/ContentDirectory/ControlHandler.cs

+ 2 - 0
Emby.Dlna/ContentDirectory/ControlHandler.cs

@@ -1051,6 +1051,7 @@ namespace Emby.Dlna.ContentDirectory
                 {
                 {
                     Limit = query.Limit,
                     Limit = query.Limit,
                     StartIndex = query.StartIndex,
                     StartIndex = query.StartIndex,
+                    // User cannot be null here as the caller has set it
                     UserId = query.User!.Id
                     UserId = query.User!.Id
                 },
                 },
                 new[] { parent },
                 new[] { parent },
@@ -1073,6 +1074,7 @@ namespace Emby.Dlna.ContentDirectory
             var items = _userViewManager.GetLatestItems(
             var items = _userViewManager.GetLatestItems(
                 new LatestItemsQuery
                 new LatestItemsQuery
                 {
                 {
+                    // User cannot be null here as the caller has set it
                     UserId = query.User!.Id,
                     UserId = query.User!.Id,
                     Limit = query.Limit ?? 50,
                     Limit = query.Limit ?? 50,
                     IncludeItemTypes = new[] { itemType },
                     IncludeItemTypes = new[] { itemType },