Debugger: fix nil pointer access in watch-result

This commit is contained in:
Martin 2022-06-15 13:11:29 +02:00
parent 4e97ffa45f
commit fd69a9ce4b

View File

@ -3809,6 +3809,8 @@ begin
exit;
assert((AStorage=nil) or (AStorage^=nil) or (AStorage^ is TNestedFieldsWatchResultStorage), 'TGenericWatchResultDataStruct.MaybeUpdateProto: (AStorage=nil) or (AStorage^=nil) or (AStorage^ is TNestedFieldsWatchResultStorage)');
if (AStorage = nil) or (AStorage^ = nil) then
exit;
for i := 0 to Length(FType.FFieldData) - 1 do begin
Store := AStorage;
if (Store <> nil) and (Store^ <> nil) then