From abe3e723ea234a1f7c4aaf34c93ae2d71effb034 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 20 Oct 2015 20:54:19 +0000 Subject: [PATCH] Added error handling code so that procedurre set could be imported. --- PROMS/VEPROMS User Interface/dlgExportImport.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PROMS/VEPROMS User Interface/dlgExportImport.cs b/PROMS/VEPROMS User Interface/dlgExportImport.cs index 8f684a60..e4d9918f 100644 --- a/PROMS/VEPROMS User Interface/dlgExportImport.cs +++ b/PROMS/VEPROMS User Interface/dlgExportImport.cs @@ -422,6 +422,8 @@ namespace VEPROMS { Content c = Content.Get(pi.MyContent.ContentID); XmlDocument xd = new XmlDocument(); + // If the config field is empty, add an empty xml node. + if (c.Config == "") c.Config = ""; xd.LoadXml(c.Config); XmlNode xn = xd.SelectSingleNode("Config/Procedure/@SectionStart"); if (xn != null)