diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-05-30 16:55:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-30 16:55:57 -0400 |
| commit | 6c5fe7935b5c684526117de7472a6c34903aad44 (patch) | |
| tree | b91f6642d01828f32120650129905c6d53a328bb /Emby.Server.Implementations/Collections/CollectionManager.cs | |
| parent | 9f094322f7b84668c74c95e64d25e1ced70bb194 (diff) | |
| parent | d8ec7109ab5ec561254465e1664974049cc556d7 (diff) | |
Merge pull request #2675 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Collections/CollectionManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Collections/CollectionManager.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Collections/CollectionManager.cs b/Emby.Server.Implementations/Collections/CollectionManager.cs index 9c26655fc..4e5d344a3 100644 --- a/Emby.Server.Implementations/Collections/CollectionManager.cs +++ b/Emby.Server.Implementations/Collections/CollectionManager.cs @@ -170,6 +170,11 @@ namespace Emby.Server.Implementations.Collections { var item = _libraryManager.GetItemById(itemId); + if (string.IsNullOrWhiteSpace(item.Path)) + { + continue; + } + if (item == null) { throw new ArgumentException("No item exists with the supplied Id"); |
