diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp index 40c5cfda6e9..39baecbaadd 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp @@ -481,7 +481,9 @@ static NodeMetaInfo findCommonSuperClass(const NodeMetaInfo &first, const NodeMe NodeMetaInfo PropertyEditorQmlBackend::findCommonAncestor(const ModelNode &node) { - QTC_ASSERT(node.isValid(), return {}); + if (!node.isValid()) + return {}; + QTC_ASSERT(node.metaInfo().isValid(), return {}); AbstractView *view = node.view();