lazcontrols: prevent AV in TTreeFilterEdit.RestoreSelection if treeview is nil. Issue #29441

git-svn-id: trunk@51312 -
This commit is contained in:
ondrej 2016-01-18 16:00:35 +00:00
parent 83ecb7738d
commit 235ced5144

View File

@ -560,6 +560,8 @@ var
ANode, SelectNode: TTreeNode;
CurText: string;
begin
if fFilteredTreeview=nil then Exit;
SelectNode:=Nil;
// ToDo: support more than one items or otherwise clean the code.
Assert(fSelectionList.Count < 2,