Parcourir la source

* Fixed bug #26117, as proposed by reporter

git-svn-id: trunk@27747 -
michael il y a 11 ans
Parent
commit
c861384366
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      packages/fcl-db/src/export/fpdbexport.pp

+ 2 - 1
packages/fcl-db/src/export/fpdbexport.pp

@@ -456,7 +456,8 @@ begin
     If (FDataset<>Nil) then
     If (FDataset<>Nil) then
       FDataset.RemoveFreeNotification(Self);
       FDataset.RemoveFreeNotification(Self);
     FDataset:=AValue;
     FDataset:=AValue;
-    FDataset.FreeNotification(Self);
+    if (FDataset<>Nil) then
+      FDataset.FreeNotification(Self);
     UnbindFields;
     UnbindFields;
     end;
     end;
 end;
 end;