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;