From 1bd736f9a24de6f6d82b86dcd163dc11d0197b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Jen=C3=9Fen?= Date: Thu, 31 Oct 2024 19:00:18 +0100 Subject: [PATCH] QmlDesigner: fix possible crash - found in sentry https://the-qt-company-00.sentry.io/issues/6021640314 Change-Id: I3517117384e5fab2394010271a92cfd1301f4e96 Reviewed-by: Thomas Hartmann --- .../qmldesigner/components/formeditor/rotationcontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/formeditor/rotationcontroller.cpp b/src/plugins/qmldesigner/components/formeditor/rotationcontroller.cpp index 00717c1c620..19297bc258c 100644 --- a/src/plugins/qmldesigner/components/formeditor/rotationcontroller.cpp +++ b/src/plugins/qmldesigner/components/formeditor/rotationcontroller.cpp @@ -108,7 +108,7 @@ RotationController &RotationController::operator =(const RotationController &oth bool RotationController::isValid() const { - return m_data->formEditorItem && m_data->formEditorItem->qmlItemNode().isValid(); + return m_data && m_data->formEditorItem && m_data->formEditorItem->qmlItemNode().isValid(); } void RotationController::show()