Browse Source

* Fix bug #36086 (Lookup causes AV if dataset is empty)

git-svn-id: trunk@43034 -
michael 5 years ago
parent
commit
18479fa113
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-db/src/base/bufdataset.pas

+ 2 - 0
packages/fcl-db/src/base/bufdataset.pas

@@ -3848,6 +3848,8 @@ var
   bm:TBookmark;
 begin
   result:=Null;
+  if IsEmpty then
+    exit;
   bm:=GetBookmark;
   DisableControls;
   try