SAN FRANCISCO (CBS SF) — A year to the day after he was arrested for throwing bricks at San Francisco police officers, a protester was sentenced Wednesday to two years in state prison for a felony assault charge, prosecutors said.

Jesse Nesbitt, 35, was one of dozens of people who occupied a building at 888 Turk St. on May 1, 2012, after marching from a May Day rally downtown.

READ MORE: UPDATE: 1st U.S. Case Of COVID Omicron Variant Confirmed In San Francisco

Nesbitt threw bricks and other projectiles from the roof of the building during the occupation. The bricks missed the officers but struck a bystander, who declined medical attention, and also struck a police vehicle.

READ MORE: Facebook Uncovers Massive Network To Spread COVID Misinformation

He was charged with two counts of assault with a deadly weapon, two counts of assault upon a police officer with a deadly weapon and one count of vandalism, but agreed on Jan. 29 to plead guilty to one count of assault with a deadly weapon, district attorney’s office spokesman Alex Bastian said.

The charge is a strike under California’s three strikes law and is Nesbitt’s first strike, Bastian said.

MORE NEWS: Trevor Noah To Host 'The 64th Annual GRAMMY Awards' On CBS

(Copyright 2013 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)