Collapse only existing lanes

This commit is contained in:
Alberto Fanjul 2019-01-02 22:45:46 +01:00
parent 2407260c2a
commit 41c647fd9c

View file

@ -334,7 +334,7 @@ public class Lanes : Object
var commit = item.data;
unowned SList<Lane> lns = commit.get_lanes();
if (lns != null)
if (lns != null && index <= lns.length())
{
unowned Lane lane = lns.nth_data(index);