forked from qt-creator/qt-creator
Debugger: Robustify QmlInspectorAgent::onResult
Task-number: QTCREATORBUG-22654 Change-Id: I4bf0a17581ff3fcdc1a0b6dd9eb21fd2cf9b756c Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -260,7 +260,8 @@ void QmlInspectorAgent::onResult(quint32 queryId, const QVariant &value,
|
||||
} else {
|
||||
int index = m_rootContextQueryIds.indexOf(queryId);
|
||||
if (index < 0) {
|
||||
m_qmlEngine->expressionEvaluated(queryId, value);
|
||||
if (QTC_GUARD(m_qmlEngine))
|
||||
m_qmlEngine->expressionEvaluated(queryId, value);
|
||||
} else {
|
||||
Q_ASSERT(index < m_engines.length());
|
||||
const int engineId = m_engines.at(index).debugId();
|
||||
|
||||
Reference in New Issue
Block a user