mirror of
https://git.ryujinx.app/projects/Ryubing.git
synced 2026-10-22 03:33:26 -05:00
UI: Prevent null ldn game model arrays from entering the SetEntries method
This commit is contained in:
1 parent
c8959afa3d
commit
718652599d
2 files changed
+3
-1
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user