diff options
Diffstat (limited to 'src/declarative/qml/qmlengine.cpp')
-rw-r--r-- | src/declarative/qml/qmlengine.cpp | 3 |
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); } } |