From 694af581544404f72999bf9d371a50cca4658d7c Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 30 Dec 2019 22:04:40 -0600 Subject: [PATCH] Intermediate fix for LoadProfile Save crash Related to issue #987 --- .../DS4Forms/ViewModels/SpecialActions/LoadProfileViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/ViewModels/SpecialActions/LoadProfileViewModel.cs b/DS4Windows/DS4Forms/ViewModels/SpecialActions/LoadProfileViewModel.cs index 81b752e..bb880dc 100644 --- a/DS4Windows/DS4Forms/ViewModels/SpecialActions/LoadProfileViewModel.cs +++ b/DS4Windows/DS4Forms/ViewModels/SpecialActions/LoadProfileViewModel.cs @@ -65,7 +65,7 @@ namespace DS4WinWPF.DS4Forms.ViewModels.SpecialActions string profilename = profileList.ProfileListCol[profileIndex - 1].Name; Global.SaveAction(action.name, action.controls, 3, profilename, edit, action.ucontrols + - (autoUntrigger ? (action.ucontrols.Length > 0 ? "/" : "") + "AutomaticUntrigger" : "")); + (autoUntrigger ? ((action.ucontrols?.Length ?? 0) > 0 ? "/" : "") + "AutomaticUntrigger" : "")); } }