Skip to content

Commit

Permalink
avoid UB if _job_mgr has no value
Browse files Browse the repository at this point in the history
Signed-off-by: Teo Koon Peng <[email protected]>
  • Loading branch information
Teo Koon Peng committed Nov 7, 2023
1 parent 292c01d commit a49b4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus_workcell_orchestrator/src/workcell_orchestrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ auto WorkcellOrchestrator::on_activate(
RCLCPP_INFO(this->get_logger(), "Workcell activated");
this->_bt_timer = this->create_wall_timer(BT_TICK_RATE, [this]()
{
this->_job_mgr->tick();
this->_job_mgr.value().tick();
});
return CallbackReturn::SUCCESS;
}
Expand Down

0 comments on commit a49b4a8

Please sign in to comment.