`r` could be `null` here, methinks.