The guard clauses elsewhere in the function clearly indicate that `r_driven` should be passable as a nullptr if the caller doesn't need it, but there is one place where the guard clause was missing. Discovered while working on #120936. Pull Request: https://projects.blender.org/blender/blender/pulls/121253