mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-27 03:04:49 +03:00
fix children null reference
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user