From 7e09b365e07ccc86ca38a505f2dc87ff4e8cb5e3 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 11 Jun 2020 14:06:35 +0000 Subject: [PATCH] B2020-083: Crash after approve procedure if no edit window displayed --- PROMS/Volian.Controls.Library/ImageItem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/ImageItem.cs b/PROMS/Volian.Controls.Library/ImageItem.cs index adaf4d64..fbe90f96 100644 --- a/PROMS/Volian.Controls.Library/ImageItem.cs +++ b/PROMS/Volian.Controls.Library/ImageItem.cs @@ -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