From 89a83c70644df80e56dac4cb340e07e5c691606c Mon Sep 17 00:00:00 2001 From: John Date: Wed, 14 Oct 2020 14:02:28 +0000 Subject: [PATCH] B2020-141 This fixes logic added for Barakah which allowed user to change the procedure number of a linked Enhanced procedure. Needed to Add a NULL reference check when a deleted EOP step that once was linked to an Enhanced Step is restored. --- PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs index 574c4d24..d5be0ca6 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs @@ -637,6 +637,7 @@ namespace VEPROMS.CSLA.Library if (ed.Type != 0) { ItemInfo ii = ItemInfo.Get(ed.ItemID); + if (ii == null) continue; //B2020-141 the itemID is not there because the linked Enhanced step was delete when EOP step was deleted // C2019-045: For enhanced procedures, allow modification of number & text. A setting on the docversion (set from Properties dialog) defines whether text // can be modified if it is an enhanced item. If it can be modified, don't do the automatic update if the 'source' text is changed. bool doEnhancedMods = ii.EnhAllowMod();