Browse Source

* Fixed bug #26117, as proposed by reporter

git-svn-id: trunk@27747 -
michael 11 years ago
parent
commit
c861384366
1 changed files with 2 additions and 1 deletions
  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
       FDataset.RemoveFreeNotification(Self);
     FDataset:=AValue;
-    FDataset.FreeNotification(Self);
+    if (FDataset<>Nil) then
+      FDataset.FreeNotification(Self);
     UnbindFields;
     end;
 end;