From 09c74a00efec22c6abae5ed7ef1b1cf2cc96140b Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 13 Jan 2023 15:31:15 +0000 Subject: [PATCH] =?UTF-8?q?B2023-001:=20Barakah=20=E2=80=93=20crash=20on?= =?UTF-8?q?=20print=20of=20large=20table.=20added=20null=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/Pagination.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 70822434..250e8ef4 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -1042,7 +1042,8 @@ namespace Volian.Print.Library paraBreak = FindPageBreak(yStart, ySpaceOnCurPage - accountForCalvertAlarmConditionResponseFooter - yAccountForBottomMsg, yLowerLimit, myList, lastBreak, yPageSize - (myTopMsgSpace + SixLinesPerInch) - myBottomMsgSpace, myBottomMsgSpace, MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[40].ContinueOnly, yTop); - paraBreak.yPageSizeForPagination = yPageSize; + // B2023-001: Check for null paraBreak: + if (paraBreak != null) paraBreak.yPageSizeForPagination = yPageSize; // B2020-032 put in for Barakah EOPs 1T4-OP-EOP-XX-0100 Attachement 32 step 1.2.2a where a table was printing on a page by itself. // The following logic will walk up to each parent level to see try and get as many parent step levels on the same page // as the Table.