Browse Source

fcl-db: sqldb: Test for assigned AParams in LogParams to avoid AV. Bug #30662

git-svn-id: trunk@34573 -
lacak 8 years ago
parent
commit
cc100208c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/sqldb/sqldb.pp

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

@@ -1747,7 +1747,7 @@ Var
   P : TParam;
   P : TParam;
 
 
 begin
 begin
-  if not LogEvent(detParamValue) then
+  if not LogEvent(detParamValue) or not Assigned(AParams) then
     Exit;
     Exit;
   For P in AParams do
   For P in AParams do
     begin
     begin