e928473555
can be NULL. Make sure to only call rman_set_rid() when the resource is not NULL. While here, improve readability and style.