A NSW Liberal senator has taken a swipe at Sam Kerr, saying the footballer currently on trial in England should note it was racist to attack white people.