From 91fadf03d03e8250d93cdd31ad929a7399bb7959 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Mon, 4 Dec 2017 19:12:01 +0100 Subject: [PATCH] ApplicationOutputPane: Add missing handling of runControl being nullptr Change-Id: I8f7b5f90bfa7389df55b42910ba245ad78ef5bc6 Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/appoutputpane.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 73b28c176e1..a5f1d35a753 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -582,7 +582,8 @@ void AppOutputPane::closeTab(int tabIndex, CloseTabMode closeTabMode) m_tabWidget->removeTab(tabIndex); delete window; - runControl->initiateFinish(); // Will self-destruct. + if (runControl) + runControl->initiateFinish(); // Will self-destruct. m_runControlTabs.removeAt(index); updateCloseActions();