Add null check in TreeListView - fixes crash hitting pagedown if empty

This commit is contained in:
baldurk
2016-07-22 14:21:29 +02:00
parent 75bc04fcd0
commit bd079b7632
@@ -1003,6 +1003,8 @@ namespace TreelistView
}
public static Node FindNodesBottomLeaf(Node node, bool mustBeVisible)
{
if (node == null)
return node;
if (mustBeVisible && node.Expanded == false)
return node;
if (node.HasChildren == false || node.Nodes.LastNode == null)