Skip to content
Snippets Groups Projects
Commit e4b8d428 authored by armar6-demo's avatar armar6-demo
Browse files

Fix nullptr error in GamePadUnit

parent fa377b09
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,11 @@ void GamepadUnit::onConnectComponent()
return;
}
ARMARX_TRACE;
if (!dataTimestamp)
{
ARMARX_INFO << "dataTimestamp is null, waiting for value";
return;
}
ARMARX_CHECK_NOT_NULL(dataTimestamp);
const IceUtil::Time age = IceUtil::Time::now() - dataTimestamp->toTime();
if (age.toMilliSeconds() < getProperty<int>("PublishTimeout").getValue())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment