Commit 60ccb2a4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

Debugger: Validate pointer *before* using it

Change-Id: I8bf80fcdd51b5db8e7c65adba551ca667912cd86
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 753215e2
......@@ -88,11 +88,11 @@ QmlCppEngine::QmlCppEngine(const DebuggerStartParameters &sp, QString *errorMess
d = new QmlCppEnginePrivate;
d->m_qmlEngine = new QmlEngine(sp, this);
d->m_cppEngine = DebuggerRunControlFactory::createEngine(sp.firstSlaveEngineType, sp, errorMessage);
d->m_cppEngine->setMasterEngine(this);
if (!d->m_cppEngine) {
*errorMessage = tr("The slave debugging engine required for combined QML/C++-Debugging could not be created: %1").arg(*errorMessage);
return;
}
d->m_cppEngine->setMasterEngine(this);
setActiveEngine(d->m_cppEngine);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment