From e3ffbd9ee5865e0572563554b07730543615506e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Hamil?= Date: Sat, 21 Sep 2024 21:27:43 +0300 Subject: [PATCH] AppHost: Prevent null CycleControllers crash --- src/Ryujinx/AppHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx/AppHost.cs b/src/Ryujinx/AppHost.cs index d0a274546c..d0a1f810f3 100644 --- a/src/Ryujinx/AppHost.cs +++ b/src/Ryujinx/AppHost.cs @@ -1288,7 +1288,7 @@ namespace Ryujinx.Ava state = KeyboardHotkeyState.VolumeDown; } - foreach (var cycle in ConfigurationState.Instance.Hid.Hotkeys.Value.CycleControllers.Select((value, index) => (value, index))) + foreach (var cycle in ConfigurationState.Instance.Hid.Hotkeys.Value.CycleControllers?.Select((value, index) => (value, index)) ?? []) { if (_keyboardInterface.IsPressed((Key)cycle.value)) {