diff --git a/src/plugins/qmldesigner/designercore/instances/nodeinstancesignalspy.cpp b/src/plugins/qmldesigner/designercore/instances/nodeinstancesignalspy.cpp index d47bf05fe373d5050f39dfe6784848e7d85d4617..70a10a7544a2e7d5f59288a8b62e49cffd26d30d 100644 --- a/src/plugins/qmldesigner/designercore/instances/nodeinstancesignalspy.cpp +++ b/src/plugins/qmldesigner/designercore/instances/nodeinstancesignalspy.cpp @@ -79,7 +79,7 @@ int NodeInstanceSignalSpy::qt_metacall(QMetaObject::Call call, int methodId, voi if (call == QMetaObject::InvokeMetaMethod && methodId > QObject::staticMetaObject.methodCount()) { ObjectNodeInstance::Pointer nodeInstance = m_objectNodeInstance.toStrongRef(); - if (nodeInstance && nodeInstance->nodeInstanceView()) { + if (nodeInstance && nodeInstance->nodeInstanceView() && nodeInstance->modelNode().isValid()) { nodeInstance->nodeInstanceView()->notifyPropertyChange(nodeInstance->modelNode(), m_indexPropertyHash.value(methodId)); } diff --git a/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp b/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp index 5acfb026a2e871aba2c9b9ec576ec634bda69a92..1ae3e051f5521a41d17ee8b75bae480766575c60 100644 --- a/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp +++ b/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp @@ -568,6 +568,8 @@ void NodeInstanceView::notifyPropertyChange(const ModelNode &node, const QString { if (m_blockStatePropertyChanges) return; + if (!node.isValid()) + return; emitInstancePropertyChange(QList<QPair<ModelNode, QString> >() << qMakePair(node, propertyName)); }