From 59a5f20310b45e9c9a05993b42967768f3d1f248 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 1 Sep 2022 14:15:51 +0000 Subject: [PATCH] B2022-109: Delete procedure from tree view crashes if after copy/paste --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index f07d378f..d5fe126f 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -1431,7 +1431,8 @@ namespace VEPROMS if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.MyStepTabPanel != null) // MyStepTabPanel will be null if the active tab is a Word Attachment { StepPanel pnl = tc.SelectedDisplayTabItem.MyStepTabPanel.MyStepPanel; - if (pnl != null) pnl.MyStepTabPanel.MyStepTabRibbon.SetPasteButtons(false); + // B2022-109: crash when deleting a copy of pasted procedure - check for nulls + if (pnl != null && pnl.MyStepTabPanel != null && pnl.MyStepTabPanel.MyStepTabRibbon != null) pnl.MyStepTabPanel.MyStepTabRibbon.SetPasteButtons(false); } return rtval;