Generic bug fix : Procedure crashes when there is no test at all.
This commit is contained in:
parent
13b80de703
commit
1a0b2ee975
@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
||||
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -505,7 +505,7 @@ namespace TBF.BenchControl.Sequences
|
||||
int outerLoopStartIx = currentTestIx;
|
||||
bool outerLoopMode = false;
|
||||
int outerLoopCounter = 0;
|
||||
do
|
||||
while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount)
|
||||
{
|
||||
Test test = StateMachine.Tests[currentTestIx];
|
||||
|
||||
@ -595,7 +595,6 @@ namespace TBF.BenchControl.Sequences
|
||||
|
||||
currentTestIx++;
|
||||
}
|
||||
while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount);
|
||||
}
|
||||
else if (selection == Selection.RestOfCycle)
|
||||
{
|
||||
@ -648,7 +647,7 @@ namespace TBF.BenchControl.Sequences
|
||||
int outerLoopStartIx = currentTestIx;
|
||||
bool outerLoopMode = false;
|
||||
int outerLoopCounter = 0;
|
||||
do
|
||||
while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount)
|
||||
{
|
||||
Test test = StateMachine.Tests[currentTestIx];
|
||||
|
||||
@ -738,7 +737,6 @@ namespace TBF.BenchControl.Sequences
|
||||
|
||||
currentTestIx++;
|
||||
}
|
||||
while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount);
|
||||
}
|
||||
else /// if (selection == Selection.Test)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user