Rihanna has attained a restraining order. No, it's not against Chris Brown.

Rather, it's for Steveland Barrow, the guy who thought he broke into her house last week.

According to TMZ, Barrow actually broke into a neighbor's house, thinking it was Rihanna's. In his defense, he told police he was invited into the home and even slept in a bed that he thought was RiRi's.

That's funny.

But Rihanna definitely isn't laughing about it. In her filing she says she feels for her safety, and a judge has now issued a temporary restraining order barring Barrow from within 100 yards of the singer.

Watch Watch Rihanna's "Stay" featuring Mikky Ekko Video

See Photos of Rihanna's Harper's Bazaar Cover %VIRTUAL-MultiGallery-159847|156558|156895%