Skip to content

Commit

Permalink
fix(autoware_behavior_path_goal_planner_module): check optional befor…
Browse files Browse the repository at this point in the history
…e accessing (autowarefoundation#10182)

Update shift_pull_over.cpp
  • Loading branch information
yhisaki authored Feb 21, 2025
1 parent 5ce57c2 commit c6665a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ std::optional<PullOverPath> ShiftPullOver::generatePullOverPath(
PathShifter path_shifter{};
path_shifter.setPath(processed_prev_module_path.value());
ShiftLine shift_line{};
if (!shift_start_pose) return std::nullopt;
shift_line.start = *shift_start_pose;
shift_line.end = shift_end_pose;
shift_line.end_shift_length = shift_end_road_to_target_distance;
Expand Down

0 comments on commit c6665a7

Please sign in to comment.