From 1b9fbf27b56bb2bdcff5ace8fedf1314262eef26 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 27 Aug 2018 15:20:26 +0000 Subject: [PATCH] B2014-024 PROMS was crashing with a Null Reference error when opening and closing procedures in split screen mode. --- PROMS/Volian.Controls.Library/StepTabPanel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabPanel.cs b/PROMS/Volian.Controls.Library/StepTabPanel.cs index 8d3cdeee..3ac09eec 100644 --- a/PROMS/Volian.Controls.Library/StepTabPanel.cs +++ b/PROMS/Volian.Controls.Library/StepTabPanel.cs @@ -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; }