forked from qt-creator/qt-creator
QmlDesigner: Fix crash
Change-Id: I67c2a97e44c2bdc6973c2a3d3cbc222c46b1c461 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -508,6 +508,9 @@ QVector<PropertyInfo> getObjectTypes(const ObjectValue *objectValue, const Conte
|
||||
|
||||
if (isValueType(property.second)) {
|
||||
const Value *dotValue = objectValue->lookupMember(nameAsString, context);
|
||||
if (!dotValue)
|
||||
continue;
|
||||
|
||||
if (const Reference *ref = dotValue->asReference())
|
||||
dotValue = context->lookupReference(ref);
|
||||
|
||||
|
Reference in New Issue
Block a user