https://github.com/ros2/rmw/pull/275 changed the rmw_destroy_wait_set() API documentation to indicate that it returns RMW_RET_INVALID_ARGUMENT if wait_set is NULL. However, this wasn't the case in practice in the implementations of rmw_destroy_wait_set() or in the relevant test.
Change the implementation here to return RMW_RET_INVALID_ARGUMENT.
https://github.com/ros2/rmw/pull/275 changed the
rmw_destroy_wait_set()
API documentation to indicate that it returnsRMW_RET_INVALID_ARGUMENT
ifwait_set
isNULL
. However, this wasn't the case in practice in the implementations ofrmw_destroy_wait_set()
or in the relevant test.Change the implementation here to return
RMW_RET_INVALID_ARGUMENT
.Requires https://github.com/ros2/rmw_implementation/pull/234