Bug Fix B2018-114 Null reference check on the Get for LinkedOrdinal
This commit is contained in:
parent
c257f4b4bb
commit
2526fc6abc
@ -3751,8 +3751,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (eds != null && eds.Count == 1 && eds[0].Type == 0)
|
if (eds != null && eds.Count == 1 && eds[0].Type == 0)
|
||||||
{
|
{
|
||||||
ItemInfo srcItem = ItemInfo.Get(eds[0].ItemID);
|
ItemInfo srcItem = ItemInfo.Get(eds[0].ItemID);
|
||||||
return srcItem.Ordinal;
|
if (srcItem != null) // B2018-114 check for a null before getting the Ordinal value (code that uses this handles a Null return value from this Get
|
||||||
|
return srcItem.Ordinal;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user