summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/manual/sensor_explorer/explorer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/sensor_explorer/explorer.cpp b/tests/manual/sensor_explorer/explorer.cpp
index 112829c..48cc76f 100644
--- a/tests/manual/sensor_explorer/explorer.cpp
+++ b/tests/manual/sensor_explorer/explorer.cpp
@@ -158,6 +158,8 @@ void Explorer::loadReading()
{
// Probe the reading using Qt's meta-object facilities
QSensorReading *reading = m_sensor->reading();
+ if (!reading)
+ return;
const QMetaObject *mo = reading->metaObject();
int firstProperty = QSensorReading::staticMetaObject.propertyOffset();