Fixed null reference

Fixed null reference and logic to support Placekeeper check box
This commit is contained in:
2014-05-08 14:30:38 +00:00
parent 387dcd5dac
commit 1664a62e4d
2 changed files with 4 additions and 4 deletions

View File

@@ -683,7 +683,7 @@ namespace VEPROMS.CSLA.Library
{
get
{
SectionConfig scfg = (SectionConfig)MyActiveSection.MyConfig;
SectionConfig scfg = (SectionConfig)ActiveSection.MyConfig;
if (MyDocStyle.StructureStyle.Style == null || scfg == null) return false;
bool PlacekeepOption = ((ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoPlacekeeper) == E_PurchaseOptions.AutoPlacekeeper)
&& scfg.Section_Placekeeper.Equals("Y");