JsonDataObjects icon indicating copy to clipboard operation
JsonDataObjects copied to clipboard

uninitialized null type

Open attikov opened this issue 10 months ago • 0 comments

in class operator TJsonDataValueHelper.Implicit(const Value: Variant): TJsonDataValueHelper;

{$IFDEF AUTOREFCOUNT} if Result.FData.FObj <> nil then Result.FData.FObj := nil; {$ENDIF AUTOREFCOUNT}

this is (the directive) preventing to initialize the FObj to nil when the passed parameter is "null" causing random AV's (jdtObject with trash addresses)

attikov avatar Aug 17 '23 07:08 attikov