Bug fix: Null reference exception when closing a modified procedure

This commit is contained in:
Milan Hanajik
2015-01-04 16:26:54 +01:00
parent de90a4638a
commit 035416b785
2 changed files with 8 additions and 4 deletions
@@ -48,8 +48,10 @@ namespace TBF.BenchControl
/// Create a new entity and add it to the list test.MoreParams
InitializeAll();
Entities.ComponentProcedure componentTest = ToDbEntity(cmpntName, procedure);
procedure.MoreParams.Add(componentTest);
this.procedureParamsEntity = this.ToDbEntity(cmpntName, procedure);
this.procedure = procedure;
this.componentName = cmpntName;
procedure.MoreParams.Add(procedureParamsEntity);
}
public TBF.Entities.ComponentProcedure ToDbEntity(string componentName, Entities.Procedure procedure)
@@ -48,8 +48,10 @@ namespace TBF.BenchControl
/// Create a new entity and add it to the list test.MoreParams
InitializeAll();
Entities.ComponentTest componentTest = ToDbEntity(cmpntName, test);
test.MoreParams.Add(componentTest);
this.testParamsEntity = this.ToDbEntity(cmpntName, test);
this.test = test;
this.componentName = cmpntName;
test.MoreParams.Add(testParamsEntity);
}
public TBF.Entities.ComponentTest ToDbEntity(string componentName, Entities.Test test)