Commit 1df87ae0 authored by Aurindam Jana's avatar Aurindam Jana
Browse files

QmlJSInspector: Fix Crash.



Check for valid qmlAdapter before dereferencing it.

Change-Id: If226752780a9b8b104e1f82833d35598468e94cb
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent b18a961e
......@@ -563,7 +563,10 @@ void InspectorUi::selectItems(const QList<QDeclarativeDebugObjectReference> &obj
m_propertyInspector->setCurrentObjects(selectionList);
populateCrumblePath(objref);
gotoObjectReferenceDefinition(objref);
m_clientProxy->qmlAdapter()->setCurrentSelectedDebugInfo(debugId, displayName(objref));
Debugger::QmlAdapter *qmlAdapter = m_clientProxy->qmlAdapter();
if (qmlAdapter) {
qmlAdapter->setCurrentSelectedDebugInfo(debugId, displayName(objref));
}
break;
}
}
......
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