From 256ce987f9360d570114b003a48c70267197e71f Mon Sep 17 00:00:00 2001 From: John Date: Fri, 6 Jan 2017 20:15:31 +0000 Subject: [PATCH] Use MyActiveParent instead of MyParent in setting up the section properties dialog to fix a null reference problem B2016-280 --- PROMS/VEPROMS User Interface/frmSectionProperties.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index 0372bc44..788e47ae 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -420,7 +420,7 @@ namespace VEPROMS // Handle Default Step Section. First, this checkbox is only visible if it is // a step section & it is the highest level (top, right below procedures). ppCbDefaultStepSection.Visible = false; - if (_isStepSection && _SectionConfig.MySection.MySectionInfo.MyParent.IsProcedure) + if (_isStepSection && _SectionConfig.MySection.MySectionInfo.MyActiveParent.IsProcedure) // B2016-280 - use MyActiveParent because MyParent was sometimes null { ppCbDefaultStepSection.Visible = true; ppCbDefaultStepSection.Checked = _SectionConfig.Section_OriginalSteps == "Y";