Browse Source

* Fix bug ID #33448 (AV getting index name)

git-svn-id: trunk@38549 -
michael 7 năm trước cách đây
mục cha
commit
8fdf4b2cc3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/fcl-db/src/base/bufdataset.pas

+ 1 - 1
packages/fcl-db/src/base/bufdataset.pas

@@ -3028,7 +3028,7 @@ end;
 
 function TCustomBufDataset.GetIndexName: String;
 begin
-  if FIndexes.Count>0 then
+  if (FIndexes.Count>0) and (CurrentIndexBuf <> nil) then
     result := CurrentIndexBuf.Name
   else
     result := FIndexName;