B2022-141 Sometimes, the RoPrintCache dictionary was null. Added a NULL check and initialized the dictionary if needed.

This commit is contained in:
John Jenko 2022-12-02 14:55:32 +00:00
parent d7fca3ec99
commit 928fe33d7f

View File

@ -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<string, ROFSTLookup.rochild>();
// Check if the Rochild is in the PrintCache (use base accPageID without specific extension)
if (!RoPrintCache.ContainsKey(accPageBase))
{