From 2cab5f170502e03859cbaa1497300e6965e01851 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 20 May 2025 00:48:53 -0700 Subject: [PATCH] Qt: Fix potential crash on close with debugger open --- src/platform/qt/DebuggerConsoleController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/DebuggerConsoleController.cpp b/src/platform/qt/DebuggerConsoleController.cpp index 25bbe64cd..a147869c7 100644 --- a/src/platform/qt/DebuggerConsoleController.cpp +++ b/src/platform/qt/DebuggerConsoleController.cpp @@ -48,7 +48,7 @@ void DebuggerConsoleController::detach() { { CoreController::Interrupter interrupter(m_gameController); QMutexLocker lock(&m_mutex); - if (m_cliDebugger.d.p->state != DEBUGGER_SHUTDOWN) { + if (m_cliDebugger.d.p && m_cliDebugger.d.p->state != DEBUGGER_SHUTDOWN) { m_lines.append(QString()); m_cond.wakeOne(); }