B2017-201 Was getting a NULL reference for SI (Section Info) when generating the approved PDF, if the Summary of Changes was not done with the approval.

This commit is contained in:
2017-09-08 16:20:14 +00:00
parent f2247946e0
commit 19b4f603df
2 changed files with 6 additions and 0 deletions

View File

@@ -1707,6 +1707,9 @@ namespace Volian.Print.Library
if (section.IsStepSection && nxtItem.IsStepSection)
{
SectionInfo si = nxtItem as SectionInfo;
// B2017-201 if si is null we need to get it via the ItemID
if (si == null)
si = SectionInfo.Get(nxtItem.ItemID); //ActiveSection as SectionInfo;
SectionConfig sc = si.SectionConfig;
try
{