Skip to content

Commit

Permalink
Fixed possible nullpointer segfault
Browse files Browse the repository at this point in the history
Fix for moveit#94
  • Loading branch information
werner291 authored Jul 20, 2021
1 parent 053279f commit 2f74aa6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/moveit_visual_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,9 @@ bool MoveItVisualTools::publishTrajectoryPath(const moveit_msgs::RobotTrajectory
ROS_WARN_STREAM_NAMED(LOGNAME, "Unable to publish trajectory path because trajectory has zero points");
return false;
}

// Ensure that the robot name is available.
loadSharedRobotState();

// Create the message
moveit_msgs::DisplayTrajectory display_trajectory_msg;
Expand Down

0 comments on commit 2f74aa6

Please sign in to comment.