From 5d740f46d0f3579a7d8bbe5b7729d9dba256282c Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Thu, 25 Nov 2010 09:44:04 +0100 Subject: [PATCH] QmlDesigner.metaInfo: crash fix --- src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp index 6078b9438f9..122c5deace5 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp @@ -256,7 +256,7 @@ QHash<QString,PropertyMetaInfo> NodeMetaInfo::dotProperties() const foreach (const QString &propertyName, properties(false).keys()) { if (property(propertyName).hasDotSubProperties()) { - QString propertyType = property(propertyName, false).type(); + QString propertyType = property(propertyName, false).isValid() ? property(propertyName, false).type() : QString(); if (propertyType.right(1) == "*") propertyType = propertyType.left(propertyType.size() - 1).trimmed(); -- GitLab