diff --git a/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src/goal_planner_module.cpp b/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src/goal_planner_module.cpp index e4d5344790fac..f4d960a868cb2 100644 --- a/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src/goal_planner_module.cpp +++ b/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src/goal_planner_module.cpp @@ -1702,7 +1702,7 @@ PathWithLaneId GoalPlannerModule::generateStopPath( const PullOverContextData & context_data, const std::string & detail) const { universe_utils::ScopedTimeTrack st(__func__, *time_keeper_); - assert(!goal_searcher_); + assert(goal_searcher_); const auto & goal_searcher = goal_searcher_.value(); const auto & route_handler = planner_data_->route_handler;