Explorar o código

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

git-svn-id: trunk@38549 -
michael %!s(int64=7) %!d(string=hai) anos
pai
achega
8fdf4b2cc3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;