Tom Hanks didn't use his star power to get out of jury duty on Tuesday, but his presence serving on a domestic violence case was too much for one Los Angeles prosecutor to handle, and she just had to talk to him.

Hanks was hearing arguments in a case of a man who allegedly hit his girlfriend, and during a court break a female member of the prosecution approached Hanks to thank him for doing his civil duty and not using his Hollywood status to shirk his responsibility.

The contact broke ethics rules though, and the prosecution was forced to offer a plea deal that saw the defendant -- who faced a year in prison if convicted -- walk free with a slap on the wrist and a $150 fine.

"The assigned prosecutor on the case gave notice to the court and myself, which was his duty, of course, under the ethics rules, that he either saw or was told that one of his colleagues had had contact with Mr. Hanks in the same unit, the City Attorney's Office, said defense attorney Andrew Flier in an interview with

"In a brief evidentiary hearing this morning, she - she being the prosecutor who should definitely not have done what she did - said that around noon time, either yesterday or the day before, she made contact with Mr. Hanks in the stairwell of the building and she came up to him and said that she thanked him and that how impressed everyone is that such a celebrity would still be here serving jury duty. So she... was maybe a little starstruck and nice, but... it should never have happened."