aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ItemsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-26 16:38:50 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-26 16:38:50 -0400
commit17e416a0fd681a3ef71e09c58e2af49177afe56e (patch)
tree4b381e814622e24ed5e705165fc50d46b6ceb5e1 /MediaBrowser.Api/UserLibrary/ItemsService.cs
parentdc15f930051d209e7bccbd352139a843982a9c62 (diff)
add logging
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/ItemsService.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs
index 19cadbec7..a6f1d8b98 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -108,6 +108,11 @@ namespace MediaBrowser.Api.UserLibrary
throw new InvalidOperationException("GetItemsToSerialize returned null");
}
+ if (result.Items == null)
+ {
+ throw new InvalidOperationException("GetItemsToSerialize result.Items returned null");
+ }
+
var dtoOptions = GetDtoOptions(request);
var dtoList = await _dtoService.GetBaseItemDtos(result.Items, dtoOptions, user).ConfigureAwait(false);