Skip to content

Commit

Permalink
fix(route_handler): fix getRouteUuid to return initial value when rou…
Browse files Browse the repository at this point in the history
…te is not set (autowarefoundation#4568)

Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Aug 22, 2023
1 parent 5476cd4 commit bc418de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/route_handler/src/route_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ UUID RouteHandler::getRouteUuid() const
{
if (!route_ptr_) {
RCLCPP_WARN(logger_, "[Route Handler] getRouteUuid: Route has not been set yet");
UUID();
return UUID();
}
return route_ptr_->uuid;
}
Expand Down

0 comments on commit bc418de

Please sign in to comment.