mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 21:20:30 +02:00
LCL, dblookup, prevent SIGSEGV if ListLinkDataset is closed, from Julio Jiménez Borreguero
git-svn-id: trunk@40434 -
This commit is contained in:
parent
1a323f4eb3
commit
24fdf2be90
@ -225,6 +225,9 @@ begin
|
||||
ListLinkDataSet := FListLink.DataSet;
|
||||
if not (Assigned(ListLinkDataSet) and Assigned(FListField)) then
|
||||
Exit;
|
||||
// Prevent SIGSEGV if ListLinkDataset is closed
|
||||
if not ListLinkDataset.Active then
|
||||
Exit;
|
||||
LinkGetBookMark;
|
||||
try
|
||||
//needed to handle sqldb.TSQLQuery that does not has a reliable recordcount after Open
|
||||
|
Loading…
Reference in New Issue
Block a user