Bug fix: Null reference exception when closing a modified procedure
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user