diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index 97ba647727..4d5dc5ddb3 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -513,7 +513,7 @@ namespace MediaBrowser.Controller.Entities /// /// The children /// - private IReadOnlyList _children; + private IReadOnlyList _children = new List(); /// /// The _children sync lock /// @@ -1026,7 +1026,7 @@ namespace MediaBrowser.Controller.Entities throw new ArgumentNullException(); } - var initialCount = _children == null ? 100 : _children.Count; + var initialCount = _children.Count; var list = new List(initialCount); AddRecursiveChildrenInternal(user, includeLinkedChildren, list);