diff --git a/src/plugins/qmldesigner/designercore/model/internalnode_p.h b/src/plugins/qmldesigner/designercore/model/internalnode_p.h index d82d97251a1..8b3ff86d2bc 100644 --- a/src/plugins/qmldesigner/designercore/model/internalnode_p.h +++ b/src/plugins/qmldesigner/designercore/model/internalnode_p.h @@ -108,8 +108,9 @@ public: InternalNodeAbstractProperty::Pointer nodeAbstractProperty(const PropertyName &name) const { auto property = m_namePropertyHash.value(name); - if (property->propertyType() == PropertyType::NodeList - || property->propertyType() == PropertyType::Node) { + if (property + && (property->propertyType() == PropertyType::NodeList + || property->propertyType() == PropertyType::Node)) { return std::static_pointer_cast(property); } return {};