mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 12:40:33 +02:00
LazDebuggerFp: Add nil check in Memreader
This commit is contained in:
parent
f22d055c0d
commit
88ad421ae1
@ -1529,7 +1529,7 @@ var
|
||||
Process: TDbgProcess;
|
||||
begin
|
||||
Process := GetDbgProcess;
|
||||
if not Process.GetThread(AContext.ThreadId, Result) then
|
||||
if (AContext = nil) or not Process.GetThread(AContext.ThreadId, Result) then
|
||||
Result := FFpDebugDebugger.FDbgController.CurrentThread;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user