Skip to content
Snippets Groups Projects
Commit 235ced51 authored by ondrej's avatar ondrej
Browse files

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

git-svn-id: trunk@51312 -
parent 83ecb773
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment