From 928fe33d7f270b249ce5eb40b249ab12887204e8 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 2 Dec 2022 14:55:32 +0000 Subject: [PATCH] B2022-141 Sometimes, the RoPrintCache dictionary was null. Added a NULL check and initialized the dictionary if needed. --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index f95e73a3..092fbd7c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -1389,6 +1389,9 @@ namespace VEPROMS.CSLA.Library string accPageKey = lookup.FormatAccPageKey(selText, ref accPageBase, ref accPageExt); + if (RoPrintCache == null) // B2022-141 if RoPrintCache is null then ititialize it + MSWordToPDF.RoPrintCache = new Dictionary(); + // Check if the Rochild is in the PrintCache (use base accPageID without specific extension) if (!RoPrintCache.ContainsKey(accPageBase)) {