diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-09-08 17:21:10 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-09-13 18:14:58 +0200 |
commit | e94c97c599ced4ca36361d8ff5ad18417d716d56 (patch) | |
tree | d516c02fece90ce3c47475956fbdc90323eb3b7c /src/qml | |
parent | 6b6313be8ffd6bd3746d47e4ebeca35349b83c2b (diff) |
Qml: Don't crash on bad grouped properties
Fixes: QTBUG-106457
Change-Id: Id36b54fd3ed413c0ac49e33e5ea87984d5220aef
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit e061c934d5a6d93493ba2be7b61efdd055d1e164)
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/qml/qqmlpropertycachecreator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertycachecreator.cpp b/src/qml/qml/qqmlpropertycachecreator.cpp index a5cf194c36..b5889ca625 100644 --- a/src/qml/qml/qqmlpropertycachecreator.cpp +++ b/src/qml/qml/qqmlpropertycachecreator.cpp @@ -115,8 +115,10 @@ bool QQmlBindingInstantiationContext::resolveInstantiatingProperty() return true; } + if (!referencingObjectPropertyCache) + return false; + Q_ASSERT(referencingObjectIndex >= 0); - Q_ASSERT(referencingObjectPropertyCache); Q_ASSERT(instantiatingBinding->propertyNameIndex != 0); bool notInRevision = false; |