Sfoglia il codice sorgente

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

git-svn-id: trunk@43034 -
michael 6 anni fa
parent
commit
18479fa113
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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