Skip to content

Commit 11e4acf

Browse files
committed
fix(comms): fix assigment to undefined in QueryGraph.walkDocument
checks if edge.getSource() and edge.getTarget() are undefined when attempting to set _isSpill on those objects to true Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com>
1 parent 415bc0e commit 11e4acf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/comms/src/ecl/queryGraph.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,13 @@ export class QueryGraph {
753753
} else if (edge._sourceActivity || edge._targetActivity) {
754754
edge._isSpill = true;
755755
const source = edge.getSource();
756-
source._isSpill = true;
756+
if (source) {
757+
source._isSpill = true;
758+
}
757759
const target = edge.getTarget();
758-
target._isSpill = true;
760+
if (target) {
761+
target._isSpill = true;
762+
}
759763
}
760764
retVal.addEdge(edge);
761765
break;

0 commit comments

Comments
 (0)