From e1e1bbb38ab9bd33c269ce08beb7d18bf3d315c6 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 29 Jun 2017 16:21:17 +0000 Subject: [PATCH] B2017-132 added a check for null reference. When processing PDF chunks during sup info printing we were trying to process a vlnmacro that was set to null --- PROMS/Volian.Print.Library/PromsPrinter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 443c9f41..966052f1 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -1964,6 +1964,7 @@ namespace Volian.Print.Library /// Multiplier private void NewSupInfoFixParts(vlnPrintObject po, float scaler) { + if (po.IParagraph == null) return; // B2017-132 check for NULL reference (happend printing Bryon SAMGS with sup info pages) // Adjust the font size by the multiplier foreach (Chunk chk in po.IParagraph.Chunks) chk.Font.Size = scaler * chk.Font.Size;