QmlDesigner: Fix crash

Change-Id: I67c2a97e44c2bdc6973c2a3d3cbc222c46b1c461
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Thomas Hartmann
2020-06-26 19:22:06 +02:00
parent 8a2cb794b9
commit 7ab00c4e94

View File

@@ -508,6 +508,9 @@ QVector<PropertyInfo> getObjectTypes(const ObjectValue *objectValue, const Conte
if (isValueType(property.second)) { if (isValueType(property.second)) {
const Value *dotValue = objectValue->lookupMember(nameAsString, context); const Value *dotValue = objectValue->lookupMember(nameAsString, context);
if (!dotValue)
continue;
if (const Reference *ref = dotValue->asReference()) if (const Reference *ref = dotValue->asReference())
dotValue = context->lookupReference(ref); dotValue = context->lookupReference(ref);