Skip to content

Commit

Permalink
Fix crash caused by null value set as a nested record. (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjantz2 authored May 1, 2024
1 parent 91a019c commit d0c3414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/MVCFramework.Serializer.JsonDataObjects.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,9 @@ procedure TMVCJsonDataObjectsSerializer.JSONObjectPropertyToTValueForRecord(AJSO

begin
lChildObject := nil;
if AJSONObject = nil then
Exit;

case AJSONObject[APropertyName].Typ of
jdtNone:
Exit;
Expand Down

0 comments on commit d0c3414

Please sign in to comment.