summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2020-02-03 14:22:28 +0200
committerJere Tuliniemi <jere.tuliniemi@qt.io>2020-02-05 08:36:04 +0200
commit3e16a250de1475e19be28f20ff6eaedc69d3bb0f (patch)
tree798ab53c8aa867abee268e7f5a7b7c6c89bb3d6b
parenta9176e1fefa0dfa458911748dd57bb6423cd2cc5 (diff)
Fix delayed loading data input crash
Task-number: QT3DS-4056 Change-Id: I4513214fa20e2c4b0e7a137fa97c648a644e0757 Reviewed-by: Antti Määttä <antti.maatta@qt.io>
-rw-r--r--src/runtime/Qt3DSQmlEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/Qt3DSQmlEngine.cpp b/src/runtime/Qt3DSQmlEngine.cpp
index d6c563a..16675d8 100644
--- a/src/runtime/Qt3DSQmlEngine.cpp
+++ b/src/runtime/Qt3DSQmlEngine.cpp
@@ -943,7 +943,7 @@ void CQmlEngineImpl::SetDataInputValue(
TElement *element = getTarget(ctrlElem.elementPath.constData());
auto hash = CHash::HashAttribute(QString(ctrlElem.attributeName.first()));
- if (hash == Q3DStudio::ATTRIBUTE_EYEBALL && element->m_OnMaster) {
+ if (element && hash == Q3DStudio::ATTRIBUTE_EYEBALL && element->m_OnMaster) {
element->GetActivityZone().setControlled(*element);
element->SetControlledActive(valueBool);
}