In New York City they've shot black undercover officers if they spot a gun, so saying it "freaks them out" is quite an understatement.
It’s true that there’s been incidents of black officers shot. Most often my friend would be in his car and the gun would be in the glove. There’d be some real interest along the lines of “hey, what do we have here” but of course then the paperwork would be produced.
And sometimes he’d be in the car with another guy who just happened to be a detective on the NYC force too.