diff --git a/src/UniversalValveToolbox/UI/FormProjects.cs b/src/UniversalValveToolbox/UI/FormProjects.cs index 476b22f..309d2f0 100644 --- a/src/UniversalValveToolbox/UI/FormProjects.cs +++ b/src/UniversalValveToolbox/UI/FormProjects.cs @@ -86,7 +86,7 @@ namespace UniversalValveToolbox { } private void comboBoxEngine_SelectedIndexChanged(object sender, EventArgs e) { - if (model.SelectProject != null) + if (model.SelectProject != null && comboBoxEngine.SelectedItem != null) model.SelectProject.Engine = ((EngineDtoModel)comboBoxEngine.SelectedItem).Appid; }