diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 099430b94a6..c69aeaf828c 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -380,7 +380,8 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc) QTimer::singleShot(0, this, [this, rc] { runControlFinished(rc); }); for (const RunControlTab &t : std::as_const(m_runControlTabs)) { if (t.runControl == rc) { - t.window->flush(); + if (t.window) + t.window->flush(); break; } }