B2016-130: Previous checkin for this caused crash on null reference - this was fixed.

This commit is contained in:
Kathy Ruffing 2017-08-07 14:40:59 +00:00
parent a03e6903d0
commit c37948a2f3

View File

@ -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;