summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}