mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 17:29:40 +02:00
Debugger: fix nil pointer access in watch-result
This commit is contained in:
parent
4e97ffa45f
commit
fd69a9ce4b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user