A Brooklyn court officer is indicted for allegedly pressuring a woman to perform a sex act on him in the courthouse.

58-year old Timothy Nolan of Long Island is charged with official misconduct, second-degree coercion, and public lewdness.

Erica McRae says back in October, the officer took her to a stairwell inside of Brooklyn Criminal Court.

Nolan allegedly offered to help her boyfriend beat a case if she said yes, then he exposed himself to her.

McRae says she wants to prevent anything like this from happening again.

"I'm just grateful for the DA for proceeding along with the case and getting an indictment," McRae said. "I don't want this to happen to anybody else, especially in the court system. This happened at court and I think if something like this was to happen again they should know that they're gonna get charged and something's gonna happen."

Nolan is due back in court in October and faces up to a year in jail if he's convicted.