B2022-075 Added a null reference check when checking if RO table is up to date

This commit is contained in:
John Jenko 2022-07-11 20:37:30 +00:00
parent 1974599986
commit 7aaa13ef32

View File

@ -1024,7 +1024,7 @@ namespace VEPROMS.CSLA.Library
if (rotype == (int)E_ROValueType.Table) // if change in rotable data...
{
List<string> retlist = origROFstInfo.OnROTableUpdate(this.Get(), new ROFstInfoROTableUpdateEventArgs(newvalue, MyGrid.Data));
if (Text != retlist[0]) _Text = retlist[0];
if (retlist != null && Text != retlist[0]) _Text = retlist[0]; //B2022-075 added null reference check
}
else
{