* Fix for Mantis #20041, check assignment of buffer in TField.Getdata

(IsNull might call it with a dummy buffer)

git-svn-id: trunk@18854 -
This commit is contained in:
marco 2011-08-26 13:44:05 +00:00
parent 9772257404
commit 275261f815

View File

@ -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