A man arrested after breaking into Sandra Bullock’s home in 2014 has finally had his day in court, with Associated Press reporting that Joshua James Corbett was convicted on counts of felony stalking and burglary after entering a plea of no contest.

Corbett, 41, was arrested inside Bullock’s Los Angeles home in June 2014. Bullock came face to face with Corbett when she heard loud noises inside her house at approximately 1 a.m. Seeing Corbett in her hallway, she locked herself in her bedroom and called 911.

When police arrived to detain Corbett, he reportedly yelled to her: “Sandy, I’m sorry, please don’t press charges.” At the time, he was carrying a notebook containing photos of Bullock clipped from magazines in addition to some handwritten notes, one of which read: “I will forever be thinking of you and Louie, my son, as you are my wife by law, the law of God and you belong to me and me to you.”

RELATED: Police Illegally Searched Home Of Sandra Bullock’s Alleged Stalker, Court Decides Evidence Inadmissible At Trial

Investigators later discovered a cache of weapons after searching his home, but weapons charges were later dropped after a judge determined that LAPD detectives violated Corbett’s rights when they convinced him to let them enter his home in order to search guns. Had those charges not been dropped, Corbett would have faced a potential sentence of 12 years.

Despite the conviction, Corbett will serve no jail time. He was sentenced to five years probation, and ordered to continue mental health treatment at an in-patient facility. In addition, Corbett has been ordered to stay away from the “Gravity” star and make no attempt to contact her for a period of 10 years.

“I’d already hurt somebody that I didn’t intend to,” Corbett said during one of his hearings. “I did not want to affect my family with my actions.”

RELATED: Sandra Bullock’s 911 Tape: Actress Terrified, Crying in the Closet as Alleged Stalker Invades Home

While Corbett won’t be heading to the slammer, TMZ points out that the terms of his sentencing contain a silver lining. Until now, Bullock only had a restraining order to protect her from Corbett, a measure that does little good if the person under the order is suffering from mental health issues and isn’t taking the necessary medication.

“Now that Corbett is on probation,” notes TMZ, “he’ll be monitored by a probation officer who can keep tabs on him and make sure he takes his meds. Typically, someone who takes the required meds becomes harmless.”