Browse Source

* Fix for Mantis #20041, check assignment of buffer in TField.Getdata
(IsNull might call it with a dummy buffer)

git-svn-id: trunk@18854 -

marco 14 years ago
parent
commit
275261f815
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-db/src/base/fields.inc

+ 2 - 2
packages/fcl-db/src/base/fields.inc

@@ -558,8 +558,8 @@ begin
     DatabaseErrorFmt(SNoDataset,[FieldName]);
   If FVAlidating then
     begin
-    result:=Not(FValueBuffer=Nil);
-    If Result then
+    result:=assigned(FValueBuffer);
+    If Result and assigned(Buffer) then
       Move (FValueBuffer^,Buffer^ ,DataSize);
     end
   else