diff --git a/Userland/Libraries/LibCore/EventLoop.cpp b/Userland/Libraries/LibCore/EventLoop.cpp index 98ffbe518f..3a82ea4d5f 100644 --- a/Userland/Libraries/LibCore/EventLoop.cpp +++ b/Userland/Libraries/LibCore/EventLoop.cpp @@ -54,6 +54,8 @@ bool EventLoop::is_running() EventLoop& EventLoop::current() { + if (event_loop_stack().is_empty()) + dbgln("No EventLoop is present, unable to return current one!"); return event_loop_stack().last(); }