Skip to content

Commit

Permalink
simple change
Browse files Browse the repository at this point in the history
Signed-off-by: GoesM <[email protected]>
  • Loading branch information
GoesM committed Jul 19, 2024
1 parent 031fa33 commit 7e37f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_smoother/src/nav2_smoother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void SmootherServer::smoothPlan()
auto result = std::make_shared<Action::Result>();
try {
auto goal = action_server_->get_current_goal();
if (goal == nulPtr) {
if (!goal) {
return; // if action_server_ is inactivate, goal would be a nullptr
}

Expand Down

0 comments on commit 7e37f9f

Please sign in to comment.