mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log][linear-bek] a very long edge can come from a tail
This commit is contained in:
+4
-2
@@ -101,10 +101,12 @@ class LinearBekGraphBuilder {
|
||||
while (!queue.isEmpty()) {
|
||||
GraphEdge nextEdge = queue.poll();
|
||||
Integer next = nextEdge.getDownNodeIndex();
|
||||
if (next == null) continue; // allow very long edges down
|
||||
|
||||
Integer upNodeIndex = nextEdge.getUpNodeIndex();
|
||||
assert upNodeIndex != null; // can not happen
|
||||
if (next == null) {
|
||||
fragment.addTail(upNodeIndex);
|
||||
continue; // allow very long edges down
|
||||
}
|
||||
|
||||
if (next == firstChild) {
|
||||
// found first child
|
||||
|
||||
Reference in New Issue
Block a user