From c37948a2f3fc449fb7f30b0315c5f9877a33f490 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 7 Aug 2017 14:40:59 +0000 Subject: [PATCH] B2016-130: Previous checkin for this caused crash on null reference - this was fixed. --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index da6b8130..9b2a823c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -254,7 +254,9 @@ namespace VEPROMS.CSLA.Library { using (Item fromitem = previousInfo == null ? null : previousInfo.Get()) { - ItemInfo nextInfo = previousInfo.GetNext(); // Check to see if the item is being inserted in the middle of some items. + ItemInfo nextInfo = null; // Check to see if the item is being inserted in the middle of some items. + if (previousInfo != null) + nextInfo = previousInfo.GetNext(); using (Item itm = Item.MakeItem(fromitem, cont)) { newitemid = itm.ItemID;