* correctly handle IsEmpty if Nil had been passed to Make

git-svn-id: trunk@36984 -
This commit is contained in:
svenbarth 2017-08-20 19:19:41 +00:00
parent a03b9d0fc4
commit ae6352611f

View File

@ -703,7 +703,9 @@ end;
function TValue.GetIsEmpty: boolean;
begin
result := (FData.FTypeInfo=nil);
result := (FData.FTypeInfo=nil) or
((Kind in [tkSString, tkObject, tkRecord, tkArray]) and not Assigned(FData.FValueData)) or
((Kind in [tkClass, tkClassRef, tkInterfaceRaw]) and not Assigned(FData.FAsPointer));
end;
function TValue.IsArray: boolean;