B2023-030 added a NULL reference check in logic for removing foldout PDF from cache.

This commit is contained in:
John Jenko 2023-03-09 16:22:25 +00:00
parent b1a6f05bd2
commit 8ee523de20

View File

@ -119,6 +119,7 @@ namespace VEPROMS.CSLA.Library
// Added this method that can be called to clear the PDF print cache for a specified section.
public static void RemovePDFFromCache(ItemInfo sect)
{
if (sect.MyContent.MyEntry == null) return; // B2023-030 not a word section so just jump out
DocStyle myDocStyle = sect.ActiveSection.MyDocStyle;
SectionConfig sc = sect.ActiveSection.MyConfig as SectionConfig;