B2022-004: BNPP1new, BNPP2, BNPPalr - Crash when adding transition to Parent/Child Procedure & support for PC proc transitions

This commit is contained in:
2022-01-10 16:36:08 +00:00
parent 82fceaff2d
commit 2b32b245a4
3 changed files with 22 additions and 0 deletions

View File

@@ -392,6 +392,10 @@ namespace VEPROMS.CSLA.Library
public string UnitSpecific(string str, int len, ItemInfo ii)
{
ProcedureInfo pi = ii as ProcedureInfo;
if (pi == null) // B2022-004: Don't crash if Proc PC/PC (ii is from a list, so wasn't an ItemInfo)
{
pi = ProcedureInfo.Get(ii.ItemID);
}
if (pi == null) return "";
string unitdes = "ID";
string prefix = null;