B2020-083: Crash after approve procedure if no edit window displayed

This commit is contained in:
Kathy Ruffing 2020-06-11 14:06:35 +00:00
parent 921d25c380
commit 7e09b365e0

View File

@ -168,7 +168,8 @@ namespace Volian.Controls.Library
}
SetWidthsAndHeights(img);
//need this to trigger update of steptabribbonbuttons:
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetButtonAndMenuEnabling(true);
// B2020-083: crash after approve of procedure when no edit window displayed - check for nulls
if (MyStepPanel != null && MyStepPanel.MyStepTabPanel != null) MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetButtonAndMenuEnabling(true);
}
public override void ToggleEditView(E_ViewMode vwMode) {}
public override string TabFormat