B2014-024 PROMS was crashing with a Null Reference error when opening and closing procedures in split screen mode.

This commit is contained in:
John Jenko 2018-08-27 15:20:26 +00:00
parent 35b4a336d6
commit 1b9fbf27b5

View File

@ -185,7 +185,8 @@ namespace Volian.Controls.Library
_ShowingItem = true;
//if (ItemSelected != null)
_MyStepPanel.ItemShow();
_MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetUpdRoValBtn(_MyStepPanel.MyStepTabPanel.MyStepTabRibbon.NewerRoFst());
if (_MyStepPanel.MyStepTabPanel != null) // B2014-024 if MyStepTabPanel is null then we are in the process of closing the procedure in that step panel
_MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetUpdRoValBtn(_MyStepPanel.MyStepTabPanel.MyStepTabRibbon.NewerRoFst());
_ShowingItem = false;
_MyDisplayTabControl.SelectedDisplayTabItem = MyDisplayTabItem;
}