[minor] In general, we use the form `checkNotNull(error, "error")`.