B2017-145 Printing an empty procedure was causing PROMs to crash

This commit is contained in:
Rich 2017-07-18 15:58:22 +00:00
parent 1995e44cc7
commit 03ed697128

View File

@ -6329,9 +6329,12 @@ namespace VEPROMS.CSLA.Library
} }
private bool GetProcHasSupInfoData() private bool GetProcHasSupInfoData()
{ {
foreach (SectionInfo mySection in Sections) if (Sections != null) // If no sections don't check
{ {
if (mySection.MyDocStyle.SupplementalInformation && mySection.HasSupInfoSteps) return true; foreach (SectionInfo mySection in Sections)
{
if (mySection.MyDocStyle.SupplementalInformation && mySection.HasSupInfoSteps) return true;
}
} }
return false; return false;
} }