From be0ae3dbe2d7c1b6c7d2060abc42a4c85009fbfc Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 24 Oct 2014 16:49:05 +0000 Subject: [PATCH] Support for a Null STBoxIndex --- PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs index 417ac638..c99a0db5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs @@ -408,6 +408,7 @@ namespace VEPROMS.CSLA.Library int iValue = 0; if (!int.TryParse(xn.InnerText, out iValue)) { + if (xn.InnerText == "") return null; Console.WriteLine(string.Format("'{0}'\r\n'{1}'\r\n'{2}' could not be converted to int?", MyFormat.FullName, MyPath + "/" + xPath, xn.InnerText)); throw (new Exception(string.Format("{0} = '{1}' could not be converted to int?", xPath, xn.InnerText))); }