B2020-084 Logic to load formats from procedure set export files that were generated prior to User Control of Format.

This commit is contained in:
John Jenko 2020-06-12 19:21:59 +00:00
parent 31a5978a90
commit fd31d5a245

View File

@ -999,7 +999,14 @@ namespace VEPROMS
string config = null;
XmlNode cfg = nd.Attributes.GetNamedItem("config");
if (cfg != null) config = cfg.InnerText;
string pname = nd.Attributes.GetNamedItem("pname").InnerText;
// B2020-084 GetNmaedItems was returning a null for pname.
// Only get the pname text if the pname attribute is found
// If there is no pname, then don't try to process and continue on with the next XML Node in the node list
string pname = null;
XmlNode pnameAttrib = nd.Attributes.GetNamedItem("pname");
if (pnameAttrib != null)
pname = pnameAttrib.InnerText;
if (pname == null) continue;
string description = null;
XmlNode descript = nd.Attributes.GetNamedItem("description");
if (descript != null) description = descript.InnerText;