B2025-020 Fixed NULL reference error while running the Refresh Transitions administrator tool.
This commit is contained in:
parent
f65644f553
commit
0749f5e724
@ -805,7 +805,21 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// B2025-020 Null Reference fix. Added check for valid index into the TransitionTypeList
|
||||||
|
if (!forceConvertToText)
|
||||||
|
{
|
||||||
|
if (traninfo.TranType >= itemInfo.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList.Count)
|
||||||
|
{
|
||||||
|
forceConvertToText = true;
|
||||||
|
TranFixCount++;
|
||||||
|
itemInfo.MyContent.FixTransitionText(traninfo, itemInfo, "Reason for Change: Transition type is not available");
|
||||||
|
using (Content content = Content.Get(itemInfo.MyContent.ContentID))
|
||||||
|
{
|
||||||
|
content.FixTransitionText(traninfo, true);
|
||||||
|
content.Save();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!forceConvertToText)
|
if (!forceConvertToText)
|
||||||
{
|
{
|
||||||
if (itemInfo.MyProcedure.ItemID != traninfo.MyItemToID.MyProcedure.ItemID) //different proc
|
if (itemInfo.MyProcedure.ItemID != traninfo.MyItemToID.MyProcedure.ItemID) //different proc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user