Commit 40f86f40 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Check if object is null

parent e7ae2466
......@@ -565,7 +565,7 @@ QStringList allPropertyNames(QObject *object, const QString &baseName = QString(
QStringList propertyNameList;
if (inspectedObjects->contains(object))
if (inspectedObjects== 0 || inspectedObjects->contains(object))
return propertyNameList;
inspectedObjects->append(object);
......@@ -835,7 +835,7 @@ QStringList propertyNameForWritableProperties(QObject *object, const QString &ba
{
QStringList propertyNameList;
if (inspectedObjects->contains(object))
if (inspectedObjects == 0 || inspectedObjects->contains(object))
return propertyNameList;
inspectedObjects->append(object);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment