From 2f427deb672cfae9f5d607da77086b75720fe416 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 18 May 2024 01:11:30 +0200 Subject: [PATCH] Fix another NullReferenceException (#6826) --- src/Ryujinx.Input/HLE/NpadManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Input/HLE/NpadManager.cs b/src/Ryujinx.Input/HLE/NpadManager.cs index 1bc54d694..1dc87358d 100644 --- a/src/Ryujinx.Input/HLE/NpadManager.cs +++ b/src/Ryujinx.Input/HLE/NpadManager.cs @@ -176,7 +176,7 @@ namespace Ryujinx.Input.HLE { foreach (InputConfig inputConfig in _inputConfig) { - _controllers[(int)inputConfig.PlayerIndex].GamepadDriver?.Clear(); + _controllers[(int)inputConfig.PlayerIndex]?.GamepadDriver?.Clear(); } _blockInputUpdates = false;