B2016-130: Previous checkin for this caused crash on null reference - this was fixed.
This commit is contained in:
parent
a03e6903d0
commit
c37948a2f3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user