From eeddbb6fa65ad31e476e01040f13bc77f6e2581d Mon Sep 17 00:00:00 2001 From: 0GreenClover0 Date: Fri, 3 Nov 2023 17:29:07 +0100 Subject: [PATCH] HackStudio: Don't crash on null progress bar update function --- Userland/Libraries/LibDebug/DebugSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibDebug/DebugSession.cpp b/Userland/Libraries/LibDebug/DebugSession.cpp index 0a04620c5e..1c094a383d 100644 --- a/Userland/Libraries/LibDebug/DebugSession.cpp +++ b/Userland/Libraries/LibDebug/DebugSession.cpp @@ -476,7 +476,8 @@ ErrorOr DebugSession::update_loaded_libs() }; ScopeGuard progress_guard([this]() { - m_on_initialization_progress(0); + if (m_on_initialization_progress) + m_on_initialization_progress(0); }); size_t vm_entry_index = 0;