Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 0790550

Browse files
committed
panic: Check if CurrentProcess & CurrentThread are valid before showing info
1 parent 4bc4e9b commit 0790550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/panic/ui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ nsa void DisplayAssertionFailed(const char *File, int Line, const char *Expressi
814814
File, Line, Expression);
815815

816816
CPUData *core = GetCurrentCPU();
817-
if (TaskManager)
817+
if (TaskManager && core->CurrentProcess.load() && core->CurrentThread.load())
818818
{
819819
ExPrint("Core: %d / pid: %d / tid: %d\n", core->ID,
820820
core->CurrentProcess->ID, core->CurrentThread->ID);

0 commit comments

Comments
 (0)