Browse Source

* Fix bug #33446, crash if filename does not exist, patch by Werner Pamler

git-svn-id: trunk@38547 -
michael 7 years ago
parent
commit
a795ff2e2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/memds/memds.pp

+ 1 - 1
packages/fcl-db/src/memds/memds.pp

@@ -653,7 +653,7 @@ end;
 procedure TMemDataset.InternalOpen;
 
 begin
-  If (FFileName<>'') then
+  If (FFileName<>'') and FileExists(FFileName) then
     FOpenStream:=TFileStream.Create(FFileName,fmOpenRead);
   Try
     InternalInitFieldDefs;