1
0
mirror of synced 2025-03-14 00:26:08 +03:00

Hotfix for missing reverse dependency in case of non-implicit change tracking policies

This commit is contained in:
Guilherme Blanco 2015-12-01 20:24:16 +00:00
parent 9b77ba2c1a
commit 3c3b7364ba

View File

@ -162,7 +162,8 @@ class CommitOrderCalculator
break;
case self::IN_PROGRESS:
if ($adjacentVertex->dependencyList[$vertex->hash]->weight < $edge->weight) {
if (isset($adjacentVertex->dependencyList[$vertex->hash]) &&
$adjacentVertex->dependencyList[$vertex->hash]->weight < $edge->weight) {
$adjacentVertex->state = self::VISITED;
$this->sortedNodeList[] = $adjacentVertex->value;
@ -180,4 +181,4 @@ class CommitOrderCalculator
$this->sortedNodeList[] = $vertex->value;
}
}
}
}