ItEr57S04ValidacionEProbasFuncionaisItEr56S04: Fix bug.
When a limiting tasks has no outgoing dependencies an empty graph was produced and this caused an assertion at TopologicalOrderIterator to fail.
This commit is contained in:
parent
9ba4a0c8bc
commit
06dc96efcc
1 changed files with 1 additions and 0 deletions
|
|
@ -316,6 +316,7 @@ public class QueuesState {
|
|||
LimitingResourceQueueElement element) {
|
||||
Set<LimitingResourceQueueDependency> outgoingEdgesOf = graph
|
||||
.outgoingEdgesOf(element);
|
||||
result.addVertex(element);
|
||||
for (LimitingResourceQueueDependency each : outgoingEdgesOf) {
|
||||
addDependency(result, each);
|
||||
buildOutgoingGraphFor(result, each.getHasAsDestiny());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue