mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-03 11:29:21 +00:00
panic: Check if CurrentProcess & CurrentThread are valid before showing info
This commit is contained in:
@ -814,7 +814,7 @@ nsa void DisplayAssertionFailed(const char *File, int Line, const char *Expressi
|
||||
File, Line, Expression);
|
||||
|
||||
CPUData *core = GetCurrentCPU();
|
||||
if (TaskManager)
|
||||
if (TaskManager && core->CurrentProcess.load() && core->CurrentThread.load())
|
||||
{
|
||||
ExPrint("Core: %d / pid: %d / tid: %d\n", core->ID,
|
||||
core->CurrentProcess->ID, core->CurrentThread->ID);
|
||||
|
Reference in New Issue
Block a user