mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-01-12 01:40:24 +00:00
UI: Prevent null ldn game model arrays from entering the SetEntries method
This commit is contained in:
parent
c8959afa3d
commit
718652599d
2 changed files with 3 additions and 1 deletions
|
|
@ -177,6 +177,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
|
||||
private void SetEntries(IEnumerable<LdnGameModel> entries)
|
||||
{
|
||||
entries ??= [];
|
||||
|
||||
_visibleEntries = entries.ToList();
|
||||
OnPropertyChanged(nameof(VisibleEntries));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
/// </summary>
|
||||
public SafeDictionary<string, LdnGameModel.Array> UsableLdnData = [];
|
||||
|
||||
private LdnGameModel[] _ldnModels;
|
||||
private LdnGameModel[] _ldnModels = [];
|
||||
|
||||
public LdnGameModel[] LdnModels
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue