diff --git a/control/autonomous_emergency_braking/src/node.cpp b/control/autonomous_emergency_braking/src/node.cpp index 7b81d5b92148c..591bff6dd40b3 100644 --- a/control/autonomous_emergency_braking/src/node.cpp +++ b/control/autonomous_emergency_braking/src/node.cpp @@ -569,7 +569,7 @@ void AEB::createClusteredPointCloudObjectData( std::vector & objects) { // check if the predicted path has valid number of points - if (ego_path.size() < 2 || ego_polys.empty() || !cropped_ros_pointcloud_ptr_) { + if (ego_path.size() < 2 || ego_polys.empty() || cropped_ros_pointcloud_ptr_->data.empty()) { return; }