UI: Prevent null ldn game model arrays from entering the SetEntries method

This commit is contained in:
GreemDev 2025-10-26 12:51:08 -05:00
parent c8959afa3d
commit 718652599d
2 changed files with 3 additions and 1 deletions

View file

@ -177,6 +177,8 @@ namespace Ryujinx.Ava.UI.ViewModels
private void SetEntries(IEnumerable<LdnGameModel> entries) private void SetEntries(IEnumerable<LdnGameModel> entries)
{ {
entries ??= [];
_visibleEntries = entries.ToList(); _visibleEntries = entries.ToList();
OnPropertyChanged(nameof(VisibleEntries)); OnPropertyChanged(nameof(VisibleEntries));
} }

View file

@ -149,7 +149,7 @@ namespace Ryujinx.Ava.UI.ViewModels
/// </summary> /// </summary>
public SafeDictionary<string, LdnGameModel.Array> UsableLdnData = []; public SafeDictionary<string, LdnGameModel.Array> UsableLdnData = [];
private LdnGameModel[] _ldnModels; private LdnGameModel[] _ldnModels = [];
public LdnGameModel[] LdnModels public LdnGameModel[] LdnModels
{ {