From f91e6ca5a311b57974ab10e1d56c65a91003f8c9 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 8 Jun 2012 13:10:54 +0000 Subject: [PATCH] --- PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs index 56a9dd52..dfabbd04 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs @@ -118,6 +118,18 @@ namespace VEPROMS.CSLA.Library if (s == string.Empty) return 0; + // there was an invalid character for Wolf Creek's index. just return + // a 0 if found. The dataloader was fixed (6/8/12) to not migrate the + // bad character, but this was added, in case there are some other conditions. + int tst = 0; + try + { + tst = int.Parse(s); + } + catch (Exception ex) + { + return 0; + } return int.Parse(s); } set