BEL AIR—Joshua James Corbett, 41, pleaded no contest on May 24, 2017 to charges of breaking into the home of actress Sandra Bullock in June 2014, the Los Angeles County District Attorney’s office announced. Corbett entered an open plea to one felony count each of stalking and first-degree residential burglary. An open plea means a sentence was not negotiated with prosecutors.

The suspect was immediately sentenced to 5 years of formal probation and continued treatment at a mental health facility. According to a press release from the LADA Office, a 10-year protective order was also issued.

On June 8, 2014, Corbett scaled a fence at approximately 5 a.m. to get onto Bullock’s property in West Los Angeles. He broke into her home while the actress was inside. Bullock locked herself in a closet, and contacted 911 to alert them of an intruder inside her home. He was immediately arrested by officials from the Los Angeles Police Department.

In a call that was played during Corbett’s preliminary hearing, the actress stated: “I’m in my closet. I have a safe door. I’m locked in the closet right now…All I saw was like, dark sweatshirt and dark pants going up the stairs to my attic.”

Corbett, who was unarmed, was carrying cut-out pictures of Bullock and love letters addressed to the actress. In the letter, Corbett pleads to become a part of Bullock’s life and professes his undying love for her. The letter, in Corbett’s possession when he was arrested by law enforcement, is signed, “Always and forever, Love, your husband.”

Following his arrest, law enforcement searched his home and discovered a small arsenal of unlicensed weaponry. Corbett was originally charged with19 felony counts, including seven counts of possession of a machine gun, two counts of possession of an assault weapon and 10 counts of possession of a destructive device.

Bullock recently made news for donating $5,000 to former Beverly Hills Hotel pool manager Svend Peterson who was suffering from homelessness.  Bullock wrote on his GoFundMe page: “Everything is going to be ok!” She added that the message came from her 7-year-old son, Louis.