Added a check for a NULL reference when building the enhanced step tab.
This commit is contained in:
parent
7e2d6ca977
commit
9b3e3a76cf
@ -3463,7 +3463,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
string tb = (LinkedOrdinal==null)? "NA" : LinkedOrdinal.ToString();
|
||||
tbformat = tbformat.Replace("{LNK C/N Num}", tb);
|
||||
tbformat = tbformat.Replace("{LNK Step Num}", (ActiveParent as ItemInfo).LinkedTab.Trim(" .".ToCharArray())); //(ActiveParent as ItemInfo).Ordinal.ToString());
|
||||
if ((ActiveParent as ItemInfo).LinkedTab != null)
|
||||
tbformat = tbformat.Replace("{LNK Step Num}", (ActiveParent as ItemInfo).LinkedTab.Trim(" .".ToCharArray())); //(ActiveParent as ItemInfo).Ordinal.ToString());
|
||||
tbformat = tbformat.TrimStart(" ".ToCharArray());
|
||||
}
|
||||
if (tbformat.Contains("{LNK Step Num}"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user