Three of the officers charged are White, three are African American. The one officer charged with murder is African American. It doesn't mean it wasn't a race-based crime.
A look at the six Baltimore police officers charged in the Gray case (Washington Post).