Ray J went ballistic on cops after they allegedly made jokes about Whitney Houston's dead body ... TMZ has learned.
Ray J -- who was romantically linked to Whitney in the months preceding her death -- was outside the suite where she died as cops and paramedics did their thing inside. Sources familiar with the situation tell us ... Ray J heard a "disrespectful comment" about Whitney followed by loud laughter, and it angered him so he tried to crash the room but he was restrained.
Our sources say Ray J went nuts a second time after hearing more laughter, and after another failed attempt to gain entry he was removed from the floor.
TMZ broke the story ... the night Whitney died ... someone connected to Whitney complained bitterly to family and others that an emergency responder was "talking trash" about Whitney's body and that the responder had done something with a sheet.
Our information seems to give credence to a Beverly Hills cop who filed a complaint with the CA Labor Dept., claiming his sergeant pulled the sheet covering WH's body below her pubic area and said, "Damn, she's still looking good, huh?"
Law enforcement sources tell us the allegation is bogus and the cop never uttered a word about this to his superiors.
As for Ray J ... we tried contacting him but were unsuccessful.