B2016-130: Previous checkin for this caused crash on null reference - this was fixed.
This commit is contained in:
@@ -254,7 +254,9 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
using (Item fromitem = previousInfo == null ? null : previousInfo.Get())
|
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))
|
using (Item itm = Item.MakeItem(fromitem, cont))
|
||||||
{
|
{
|
||||||
newitemid = itm.ItemID;
|
newitemid = itm.ItemID;
|
||||||
|
Reference in New Issue
Block a user