From 128b5d81cc585c76de8adfe480dae7127daedeac Mon Sep 17 00:00:00 2001 From: Kathy Ruffing Date: Wed, 1 Nov 2023 08:00:05 -0400 Subject: [PATCH] B2023-108: Crash during import of procedure set --- PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index e5b7f956..f19d491a 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -613,7 +613,8 @@ namespace VEPROMS.CSLA.Library return retval; } string newvalue = value; - newvalue = newvalue.Replace("{", @"\{").Replace("}", @"\}"); + // B2023-108: Added check for null reference + if (newvalue != null) newvalue = newvalue.Replace("{", @"\{").Replace("}", @"\}"); string findLink = @""; MatchCollection ms = Regex.Matches(Text, findLink); //string lookFor = string.Format(@"", rousg.ROUsageID);