Browse Source

+ do not search (locate) in an empty dataset

git-svn-id: trunk@4303 -
joost 19 years ago
parent
commit
21c061421e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      fcl/db/bufdataset.inc

+ 2 - 0
fcl/db/bufdataset.inc

@@ -827,6 +827,8 @@ begin
 // For now it is only possible to search in one field at the same time
   result := False;
 
+  if IsEmpty then exit;
+
   keyfield := FieldByName(keyfields);
   CheckNull := VarIsNull(KeyValues);