[vcs-log][linear-bek] a very long edge can come from a tail

This commit is contained in:
Julia Beliaeva
2015-02-13 15:52:00 +03:00
parent 6f9786dc66
commit 09642a0ada
@@ -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