diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index 6036e185..9155bc3e 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -138,7 +138,8 @@ namespace VEPROMS private void ppCmbxLibDocFill() { _Initializing = true; - bool isLib = _SectionConfig.MySection.MyContent.MyEntry.MyDocument.LibTitle != ""; + bool isLib = false; + if (_SectionConfig.MySection.MyContent.MyEntry.MyDocument!=null && (_SectionConfig.MySection.MyContent.MyEntry.MyDocument.LibTitle != null) && (_SectionConfig.MySection.MyContent.MyEntry.MyDocument.LibTitle != "")) isLib = true; if (isLib) { ppBtnCvrtToLibDoc.Text = "Convert this Section To A Non-Library Document";