forked from qt-creator/qt-creator
QmlEngine: Avoid accessing null pointer
Change-Id: I41ff4508ae609f481a5a20e4b398e106f2d3093d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -1154,6 +1154,8 @@ void QmlEngine::updateCurrentContext()
|
||||
} else {
|
||||
QModelIndex currentIndex = inspectorTreeView()->currentIndex();
|
||||
const WatchData *currentData = watchHandler()->watchData(currentIndex);
|
||||
if (!currentData)
|
||||
return;
|
||||
const WatchData *parentData = watchHandler()->watchData(currentIndex.parent());
|
||||
const WatchData *grandParentData = watchHandler()->watchData(
|
||||
currentIndex.parent().parent());
|
||||
|
Reference in New Issue
Block a user