B2017-272: For enhanced, use correct section type when creating a new section when previous sections in source are not linked.

B2017-272:  added a null check
This commit is contained in:
2017-12-12 16:02:30 +00:00
parent 3e4c4782bd
commit 8b177644f7
2 changed files with 7 additions and 4 deletions

View File

@@ -540,6 +540,7 @@ namespace VEPROMS.CSLA.Library
}
public List<StepDataRetval> StepGetLevelTypes(bool alwaysAdd, StepData topType, ref int cursel, string curType, ItemInfo _CurItemInfo)
{
if (topType == null) return null;
List<StepDataRetval> sds = new List<StepDataRetval>();
int retval = -1;
int cntitm = 0;