We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d541aa1 commit c8449f7Copy full SHA for c8449f7
rclcpp/include/rclcpp/wait_set_policies/static_storage.hpp
@@ -160,6 +160,15 @@ class StaticStorage : public rclcpp::wait_set_policies::detail::StoragePolicyCom
160
services_,
161
waitables_
162
);
163
+
164
+ if(this->needs_pruning_) {
165
+ // we need to throw here, as the indexing of the rcl_waitset is broken,
166
+ // in case of invalid entries
167
168
+ throw std::runtime_error(
169
+ "StaticStorage : storage_rebuild_rcl_wait_set: Detected"
170
+ " invalid entity in static entity storage");
171
+ }
172
}
173
174
// storage_add_subscription() explicitly not declared here
0 commit comments