diff --git a/PROMS/VEPROMS User Interface/dlgExportImport.cs b/PROMS/VEPROMS User Interface/dlgExportImport.cs index 7e70693a..a10ac93b 100644 --- a/PROMS/VEPROMS User Interface/dlgExportImport.cs +++ b/PROMS/VEPROMS User Interface/dlgExportImport.cs @@ -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;