UST-QuAntiL / qhana-backend

The new REST backend for QHAna (see also qhana-plugin-runner)
Apache License 2.0
1 stars 2 forks source link

fix IndexOutOfRange error #50

Closed infacc closed 1 year ago

infacc commented 1 year ago

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.