From cc06e51dc524c74a7fd4029129c8f7500822a89d Mon Sep 17 00:00:00 2001 From: John Date: Fri, 9 Oct 2020 13:27:31 +0000 Subject: [PATCH] B2020-137 Added a Null reference check to all print to continue processing when it is trying to find a place to break while processing a large table. --- 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 3d1de81b..21f9db9d 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -1476,7 +1476,8 @@ namespace Volian.Print.Library vlnParagraph myPara = FindPageBreak1(yStart, yUpperLimit, yLowerLimit, myList, lastBreak, fullPage, myBottomMsgSpace, RNOContinueOnly, yTop); float yLocation = GetYLocationFromMyList(myPara, myList); float spaceOnPage = yUpperLimit + yLocation; - if (myPara.YSize > spaceOnPage && myPara.ChildrenBelow != null && myPara.ChildrenBelow.Count > 0 + // B2020-137 added a null reference check - for Wolf Creek SYS GN-120 Attachment B + if (myPara != null && myPara.YSize > spaceOnPage && myPara.ChildrenBelow != null && myPara.ChildrenBelow.Count > 0 && myPara.ChildrenBelow[0].MyItemInfo.IsTable && spaceOnPage > 0) { vlnParagraph tpara = myPara.ChildrenBelow[0] as vlnParagraph;