Skip to content

Commit 959ac31

Browse files
committed
add extra checks
1 parent 2cb1529 commit 959ac31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/runner/extensions/event.command.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,14 @@ module.exports = {
591591
(this.state._variables = new sdk.VariableScope(result._variables));
592592

593593
// persist the pm.variables for the next request in the current iteration
594-
const partitionIndex = payload.coords.partitionIndex;
594+
// DO NOT REMOVE.
595+
const partitionIndex = cursor.partitionIndex;
595596

596597
result && result._variables &&
597598
typeof partitionIndex === 'number' &&
599+
this.partitionManager &&
600+
this.partitionManager.partitions &&
601+
this.partitionManager.partitions[partitionIndex] &&
598602
(this.partitionManager.partitions[partitionIndex]
599603
.variables._variables = new sdk.VariableScope(result._variables));
600604

0 commit comments

Comments
 (0)