mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-25 22:14:37 +00:00
panic: Check if CurrentProcess & CurrentThread are valid before showing info
This commit is contained in:
parent
4bc4e9b76f
commit
079055082a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user