Commit 8584dfc5 authored by Marco Bubke's avatar Marco Bubke
Browse files

Fix crash for a real only object property which is a null object

parent 1b64f6a1
......@@ -35,7 +35,8 @@ void NodeInstanceSignalSpy::registerObject(QObject *spiedObject, const QString &
&& !metaProperty.isWritable()
&& QmlMetaType::isQObject(metaProperty.userType())) {
QObject *propertyObject = QmlMetaType::toQObject(metaProperty.read(spiedObject));
registerObject(propertyObject, prefix + metaProperty.name() + ".");
if (propertyObject)
registerObject(propertyObject, prefix + metaProperty.name() + ".");
} else if (metaProperty.hasNotifySignal()) {
QMetaMethod metaMethod = metaProperty.notifySignal();
bool isConnecting = QMetaObject::connect(spiedObject, metaMethod.methodIndex(), this, methodeOffset, Qt::DirectConnection);
......
Supports Markdown
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