Debugger: Avoid nullptr access

Change-Id: Iff5c48d83fa7989798f1ff34868a5b37f439a744
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-04-26 16:19:17 +02:00
parent abeac62191
commit b688d18de4

View File

@@ -2655,7 +2655,7 @@ void DebuggerPluginPrivate::updateDebugActions()
if (m_shuttingDown)
return;
//if we're currently debugging the actions are controlled by engine
if (m_currentEngine->state() != DebuggerNotReady)
if (m_currentEngine && m_currentEngine->state() != DebuggerNotReady)
return;
QString whyNot;