Added a check for a null DocVersionAssociations and call to RefreshDocVersionAssociations()

This commit is contained in:
John Jenko 2016-01-19 20:19:36 +00:00
parent 25dc39cd75
commit a331fb6cb5

View File

@ -2713,6 +2713,8 @@ namespace VEPROMS
string config = nd.Attributes.GetNamedItem("config").InnerText;
string userid = nd.Attributes.GetNamedItem("userid").InnerText;
DateTime dts = DateTime.Parse(nd.Attributes.GetNamedItem("dts").InnerText);
if (MyDocVersion.DocVersionAssociations == null)
MyDocVersion.RefreshDocVersionAssociations();
ROFSTLookup lookup = MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(MyDocVersion);
string roval = lookup.GetRoValue(roid);
if (roval == "?")