forked from qt-creator/qt-creator
Debugger: Fix crash when attaching to already running application.
Change-Id: Ie6b28d14c6e8c49b9d8307c528807add82d3a57b Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -442,7 +442,7 @@ void DebuggerRunControlCreator::enrich(const RunConfiguration *runConfig, const
|
||||
if (m_rp.displayName.isEmpty() && m_runConfig)
|
||||
m_rp.displayName = m_runConfig->displayName();
|
||||
|
||||
if (runConfig->property("supportsDebugger").toBool()) {
|
||||
if (runConfig && runConfig->property("supportsDebugger").toBool()) {
|
||||
QString mainScript = runConfig->property("mainScript").toString();
|
||||
QString interpreter = runConfig->property("interpreter").toString();
|
||||
if (!interpreter.isEmpty() && mainScript.endsWith(_(".py"))) {
|
||||
|
Reference in New Issue
Block a user