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;