He was charged with one felony count each of first-degree residential burglary, stalking and possession of a machine gun, which he did not have at the time of the alleged crime, according to the Los Angeles County District Attorney’s Office.

Corbett faces up to seven years, four months in state prison.

As requested by the prosecutor, Corbett’s bail was set at $185,000 for the protection of the public, the judge said.

A protective order for Bullock was issued by the judge requiring Corbett to stay more than 200 yards away from her, among other restrictions.

Corbett was ordered to appear in court again on July 2 for a preliminary hearing setting conference.

Sandra Bullock’s home is protected by walls, gates and barbed wire. An entrance is shown on June 8, 2014. (Credit: KTLA)