From 9e557daefd8f7ef43c2e932f4bf4696cc893fc86 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 21 Sep 2019 16:26:59 -0500 Subject: [PATCH] Precaution against rapid NullReferenceException throws in Special Actions --- DS4Windows/DS4Control/Mapping.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index 01ea4a3..2950896 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -1940,6 +1940,11 @@ namespace DS4Windows actionDoneCount--; } + if (action == null) + { + continue; + } + double time = 0.0; //If a key or button is assigned to the trigger, a key special action is used like //a quick tap to use and hold to use the regular custom button/key