Is this racist?

I was with a friend and she was telling me and another friend a story about how she was scared walking through the lobby of her apartment building that night because a bunch of black guys were hanging out. My other friend who is black got upset and told her that was racist that she mentioned their race.