fix children null reference

pull/702/head
Luke Pulverenti 11 years ago
parent 1c7c71075a
commit 02b34c6393

@ -1004,7 +1004,8 @@ namespace MediaBrowser.Controller.Entities
throw new ArgumentNullException();
}
var list = new List<BaseItem>(_children.Count);
var initialCount = _children == null ? 100 : _children.Count;
var list = new List<BaseItem>(initialCount);
AddRecursiveChildrenInternal(user, includeLinkedChildren, list);

Loading…
Cancel
Save