From 8ee523de20d794c94a1cd88e92977ff78afd4471 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 9 Mar 2023 16:22:25 +0000 Subject: [PATCH] B2023-030 added a NULL reference check in logic for removing foldout PDF from cache. --- PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs index 91ceb688..367e3f3b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs @@ -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;