aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/uORB/uORB.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/uORB/uORB.cpp b/apps/uORB/uORB.cpp
index 532e54b8e..41f399f2c 100644
--- a/apps/uORB/uORB.cpp
+++ b/apps/uORB/uORB.cpp
@@ -429,6 +429,10 @@ ORBDevNode::appears_updated(SubscriberData *sd)
/* avoid racing between interrupt and non-interrupt context calls */
irqstate_t state = irqsave();
+ /* check if this topic has been published yet, if not bail out */
+ if (_data == nullptr)
+ ret = false;
+
/*
* If the subscriber's generation count matches the update generation
* count, there has been no update from their perspective; if they