Explorar o código

* ensure that a valid reference to the raw data is provided as long as the typeinfo is set

git-svn-id: trunk@39879 -
svenbarth %!s(int64=7) %!d(string=hai) anos
pai
achega
608da3d255
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/rtl-objpas/src/inc/rtti.pp

+ 1 - 1
packages/rtl-objpas/src/inc/rtti.pp

@@ -1855,7 +1855,7 @@ end;
 
 function TValue.GetReferenceToRawData: Pointer;
 begin
-  if IsEmpty then
+  if not Assigned(FData.FTypeInfo) then
     Result := Nil
   else if Assigned(FData.FValueData) then
     Result := FData.FValueData.GetReferenceToRawData