diff --git a/src/plugins/debugger/qml/qmlinspectoragent.cpp b/src/plugins/debugger/qml/qmlinspectoragent.cpp index 9b6e203081e..0c2de93fcc3 100644 --- a/src/plugins/debugger/qml/qmlinspectoragent.cpp +++ b/src/plugins/debugger/qml/qmlinspectoragent.cpp @@ -833,11 +833,14 @@ QList QmlInspectorAgent::buildWatchData(const ObjectReference &obj, list.append(propertiesWatch); foreach (const PropertyReference &property, obj.properties()) { + const QString propertyName = property.name(); + if (propertyName.isEmpty()) + continue; WatchData propertyWatch; propertyWatch.id = objDebugId; - propertyWatch.exp = property.name().toLatin1(); - propertyWatch.name = property.name(); - propertyWatch.iname = buildIName(propertiesWatch.iname, property.name()); + propertyWatch.exp = propertyName.toLatin1(); + propertyWatch.name = propertyName; + propertyWatch.iname = buildIName(propertiesWatch.iname, propertyName); propertyWatch.type = property.valueTypeName().toLatin1(); propertyWatch.value = property.value().toString(); propertyWatch.setAllUnneeded();