From 7ef955a981cc67f8e86993d36e2c0700fd8610ee Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 20 Nov 2017 15:46:19 +0000 Subject: [PATCH] B2017-261 - Needed to check for a null value before checking details of pagination --- PROMS/Volian.Print.Library/Pagination.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index abf77cad..556a3fd6 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -921,8 +921,9 @@ namespace Volian.Print.Library myPreferredBreaks.RemoveAt(0); } } - // B2017-252 Pagination Fix - Break at title rather than title content - if (paraBreak.MyItemInfo.ShortPath.EndsWith(".S1.") && (paraBreak.MyItemInfo.ActiveParent as ItemInfo).IsTitle) + // B2017-252 Pagination Fix - Break at title rather than title content + // B2017-261 - Make sure Parabreak is not null + if (paraBreak != null && paraBreak.MyItemInfo.ShortPath.EndsWith(".S1.") && (paraBreak.MyItemInfo.ActiveParent as ItemInfo).IsTitle) paraBreak = paraBreak.MyParent; yAccountForBottomMsg = 0; // Do Not Remove: The following is used for debug - useful place to debug