mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-22 12:40:00 +02:00
lazcontrols: prevent AV in TTreeFilterEdit.RestoreSelection if treeview is nil. Issue #29441
git-svn-id: trunk@51312 -
This commit is contained in:
parent
83ecb7738d
commit
235ced5144
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user