From d14feb11127d3486aac506fa5a7249b8d02eefb2 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Sat, 7 Mar 2020 02:15:59 +0300 Subject: [PATCH] holly fix of EpicMorg/UniversalValveToolbox#5 --- src/UniversalValveToolbox/UI/FormMain.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UniversalValveToolbox/UI/FormMain.cs b/src/UniversalValveToolbox/UI/FormMain.cs index 7a5f25b..a374102 100644 --- a/src/UniversalValveToolbox/UI/FormMain.cs +++ b/src/UniversalValveToolbox/UI/FormMain.cs @@ -327,7 +327,7 @@ namespace UniversalValveToolbox { var toolPath = Path.Combine(selectedEnginePath, selectedTool.Bin); if (File.Exists(toolPath)) - Process.Start(toolPath, $"{selectedTool.Args} -game \"{SelectedProject.Path}\""); + Process.Start(toolPath, $"{selectedTool.Args} -game \"{SelectedProject?.Path ?? ""}\""); else MessageBox.Show($"\"{selectedTool.Name}\" no found.\n{toolPath}", "Message", MessageBoxButtons.OK, MessageBoxIcon.Warning); }