Commit 4602fdb5 authored by Christian Stenger's avatar Christian Stenger Committed by hjk

QmlEngine: Avoid accessing null pointer

Change-Id: I41ff4508ae609f481a5a20e4b398e106f2d3093d
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 286f863f
......@@ -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());
......
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