From 88315010afb095d70e04eb397cb6babe0c3d4ac3 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 11 Jan 2023 11:33:31 +0000 Subject: [PATCH] B2022-149: Crash on print of STP procedure that has addendum --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index 5788ad8a..57f0f6b6 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -1948,7 +1948,8 @@ i = 0; if (myMsg != null && myMsg != string.Empty)stitle = stitle + myMsg; } // B2021-119: large titles on Landscape Word Attachments are printing on 2 lines. - int? stl = (int)section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength; + // B2022-149: crash on cast if null + int? stl = (int?)section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength; if (section.MyDocStyle.LandscapePageList && section.ActiveFormat.PlantFormat.FormatData.SectData.SectNumAndTlLenLand != null) stl = section.ActiveFormat.PlantFormat.FormatData.SectData.SectNumAndTlLenLand;