Skip to content

Commit

Permalink
Fix nullptr dereference
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Dec 5, 2023
1 parent e4d5dd6 commit b713af3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nexus_motion_planner/src/motion_planner_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,13 @@ MotionPlannerServer::MotionPlannerServer(const rclcpp::NodeOptions& options)
_internal_node->declare_parameter<int>(
"warehouse_port", _cache_db_port);

_motion_plan_cache =
std::make_unique<nexus::motion_planner::MotionPlanCache>(_internal_node);
}

// We need to construct the cache even if we are not using the DB, since it
// has a utility function that uses the internal node that we use to generate
// a trajectory start point for cartesian planning.
_motion_plan_cache =
std::make_unique<nexus::motion_planner::MotionPlanCache>(_internal_node);
}

//==============================================================================
Expand Down

0 comments on commit b713af3

Please sign in to comment.