summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibCore/CEventLoop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Libraries/LibCore/CEventLoop.cpp b/Libraries/LibCore/CEventLoop.cpp
index 425e18a678..8019c1378a 100644
--- a/Libraries/LibCore/CEventLoop.cpp
+++ b/Libraries/LibCore/CEventLoop.cpp
@@ -176,7 +176,9 @@ CEventLoop& CEventLoop::main()
CEventLoop& CEventLoop::current()
{
- return *s_event_loop_stack->last();
+ CEventLoop* event_loop = s_event_loop_stack->last();
+ ASSERT(event_loop != nullptr);
+ return *event_loop;
}
void CEventLoop::quit(int code)