From 8dd38f4261e496026a9065ceb4ba4217d4bd64c2 Mon Sep 17 00:00:00 2001 From: Sami Shalayel Date: Tue, 6 Sep 2022 16:01:28 +0200 Subject: QQmlVMEMetaObjectEndpoint: ensure property cache before accessing it Otherwise the property cache might be null and lead to segmentation faults, e.g. when declaring aliases in qml. Fixes: QTBUG-106256 Change-Id: I568c973e1ba00531fbe22a41e2c6c3c09dfc2f02 Reviewed-by: Ulf Hermann (cherry picked from commit e0a00a691963e2c684f4dd857d042a3ffbebe959) Reviewed-by: Fabian Kosmale --- tests/auto/qml/qqmllanguage/data/ComponentType.qml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/auto/qml/qqmllanguage/data/ComponentType.qml (limited to 'tests/auto/qml/qqmllanguage/data/ComponentType.qml') diff --git a/tests/auto/qml/qqmllanguage/data/ComponentType.qml b/tests/auto/qml/qqmllanguage/data/ComponentType.qml new file mode 100644 index 0000000000..ad0dad455c --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/ComponentType.qml @@ -0,0 +1,8 @@ +import QtQml 2 + +Component { + id: componentRoot + QtObject { + objectName: "enclosed" + } +} -- cgit v1.2.3