mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 04:58:11 +02:00
FpDebug: fix accessing nil pointer
This commit is contained in:
parent
683d087e36
commit
dd22337fc3
@ -2614,8 +2614,10 @@ begin
|
||||
if ti <> nil then begin
|
||||
Result := ti.TypeCastValue(Tmp);
|
||||
Tmp.ReleaseReference;
|
||||
TFpValueDwarf(Result).SetStructureValue(Self);
|
||||
TFpValueDwarf(Result).Context := Context;
|
||||
if Result <> nil then begin // TODO: maybe return "tmp" ??
|
||||
TFpValueDwarf(Result).SetStructureValue(Self);
|
||||
TFpValueDwarf(Result).Context := Context;
|
||||
end;
|
||||
end
|
||||
else begin
|
||||
Result := Tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user