LazDebuggerFp: Add nil check in Memreader

This commit is contained in:
Martin 2022-09-06 15:53:27 +02:00
parent f22d055c0d
commit 88ad421ae1

View File

@ -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;