diff --git a/HoistingCrane/HoistingCrane/FormMapWithSetHoistingCrane.cs b/HoistingCrane/HoistingCrane/FormMapWithSetHoistingCrane.cs index 76eb1e2..b651f85 100644 --- a/HoistingCrane/HoistingCrane/FormMapWithSetHoistingCrane.cs +++ b/HoistingCrane/HoistingCrane/FormMapWithSetHoistingCrane.cs @@ -49,6 +49,8 @@ namespace HoistingCrane { if (_mapHoistingCraneCollectionGeneric == null) { + return; + } FormHoistingCrane form = new(); if (form.ShowDialog() == DialogResult.OK) { @@ -65,8 +67,6 @@ namespace HoistingCrane } } - } - } private void ButtonRemoveHoistingCrane_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(maskedTextBoxPosition.Text))