LCL, dblookup, prevent SIGSEGV if ListLinkDataset is closed, from Julio Jiménez Borreguero

git-svn-id: trunk@40434 -
This commit is contained in:
jesus 2013-02-27 14:52:46 +00:00
parent 1a323f4eb3
commit 24fdf2be90

View File

@ -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