mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -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();
|
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);
|
AddRecursiveChildrenInternal(user, includeLinkedChildren, list);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user