mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
fix children null reference
This commit is contained in:
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…
Reference in New Issue
Block a user