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" : "")); } }