The getExperimentDBExport function iterates over an array of timline steps and skips the ones that are not in the stepList. To skip steps, it is compared if timelineStepDb.sequence == stepList[counter]. However, it is never checked if counter < stepList.length() resulting in a IndexOutOfRange error when the sequence number of the last timline step is not in stepList.
The
getExperimentDBExport
function iterates over an array of timline steps and skips the ones that are not in thestepList
. To skip steps, it is compared iftimelineStepDb.sequence == stepList[counter]
. However, it is never checked ifcounter < stepList.length()
resulting in aIndexOutOfRange
error when the sequence number of the last timline step is not instepList
.