mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:19:08 +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;
|
exit;
|
||||||
|
|
||||||
assert((AStorage=nil) or (AStorage^=nil) or (AStorage^ is TNestedFieldsWatchResultStorage), 'TGenericWatchResultDataStruct.MaybeUpdateProto: (AStorage=nil) or (AStorage^=nil) or (AStorage^ is TNestedFieldsWatchResultStorage)');
|
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
|
for i := 0 to Length(FType.FFieldData) - 1 do begin
|
||||||
Store := AStorage;
|
Store := AStorage;
|
||||||
if (Store <> nil) and (Store^ <> nil) then
|
if (Store <> nil) and (Store^ <> nil) then
|
||||||
|
Loading…
Reference in New Issue
Block a user