diff --git a/core/panic/handler.cpp b/core/panic/handler.cpp index 1cba9b2..ac6fa4f 100644 --- a/core/panic/handler.cpp +++ b/core/panic/handler.cpp @@ -105,6 +105,12 @@ nsa void InitFont() { /* Hope we won't crash here */ + if (Display == nullptr) + { + error("Can't initialize font without display initalized"); + CPU::Stop(); + } + if (FbBeforePanic != nullptr) KernelAllocator.FreePages(FbBeforePanic, FbPagesBeforePanic); else