B2017-174: Fix crash when linking (Enhanced) a new note (added a null reference check) when first in list with others below it.
This commit is contained in:
parent
7eef093c90
commit
a413025fcd
@ -1613,7 +1613,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
ItemInfo exEnh = ItemInfo.Get(edSource.ItemID);
|
||||
int enhType = (int)MyContent.Type;
|
||||
if (iiCur.MyContent.Type == MyContent.Type) // B2017-134 the enhanced section was being created with the wrong document type creating new enhanced section from EOP (byron data)
|
||||
if (iiCur != null && iiCur.MyContent.Type == MyContent.Type) // B2017-134 the enhanced section was being created with the wrong document type creating new enhanced section from EOP (byron data) (B2017-174: added null check)
|
||||
enhType = (int)exEnh.MyContent.Type;
|
||||
if (exEnh.IsStep)
|
||||
newEnh = exEnh.InsertEnhancedSteps(MyContent.Text, null, addtype, enhType, edSource.Type, this.ItemID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user