summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qmlengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index a58b35e..72603ed 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -1255,7 +1255,8 @@ QmlTypeNameScriptClass::queryProperty(const QScriptValue &scriptObject,
} else {
// Must be an attached property
this->object = qmlAttachedPropertiesObjectById(bridge.type->index(), bridge.object);
- Q_ASSERT(this->object);
+ if (!this->object)
+ return 0;
return ep->queryObject(strName, id, this->object);
}
}