Robert Melanson, who the 'Stay' hitmaker has secured a temporary retraining order against, was arrested for creeping around on the roof of her Los Angeles home earlier this month, reported TMZ online.
A judge sentenced Melanson, 26, to time served in jail (six days), three years of probation and also to one year of mental health treatment. He also fined him USD 344.
Rihanna, who was in the UK on her 'Diamonds' world tour at the time of the incident on June 17, secured a temporary restraining order against the obsessed fan earlier this week.
Rihanna wrote she feared for her safety in legal documents because Robert is unstable and has a criminal history.
The singer will try and make the restraining order permanent on July 10.