LOS ANGELES (AP) — Comedian Katt Williams was sentenced to three years of probation after pleading no contest to stealing a celebrity photographer’s camera.

Los Angeles prosecutors said Monday that Williams will also need to attend anger management classes.

FILE – In this, Oct. 27, 2015, file photo, comedian Katt Williams appears in court for his arraignment on robbery charges in Los Angeles. Los Angeles prosecutors on Tuesday, Aug. 16, 2016, charged Williams with one count of misdemeanor battery over a July 24, 2016, incident in which a woman accused the comedian of hurting her in a parking lot in the Sherman Oaks neighborhood of Los Angeles. (Frederick M. Brown/Pool via AP, File)

In September 2014, a celebrity photographer accused Williams and former rap music mogul Marion “Suge” Knight of stealing her camera. The photographer said she suffered a concussion after an associate of the men attacked her.

Williams’ attorney has said in court the comedian briefly took the camera from an associate only to erase any images of Knight’s son, who was with his father visiting a Beverly Hills studio.

His attorney didn’t immediately comment Monday.

Charges against Knight are still pending. He’s also charged in a separate murder case and has pleaded not guilty to all charges.