A financial credit risk analyst who caused a disturbance after he was refused entry to a pub had been drinking whiskey on an empty stomach.
Cormac O'Raw (24) was arrested over his behaviour in the incident.
Judge Anthony Halpin struck the case out after he made a €250 charity donation.
O'Raw, of Elton Court, Leixlip, Co Kildare, admitted threatening, abusive and insulting behaviour, and failing to comply with garda directions.
Dublin District Court heard that the incident happened in Fleet Street, Dublin, on March 9.
Gardai saw that O'Raw appeared intoxicated and was arguing with people. He had been refused entry to a pub and was complaining about this.
O'Raw refused to move on and was arrested. He had no previous convictions.
The accused worked at the Irish office of a foreign bank and had a master's degree in economics, his lawyer said.
He was out on the night, had not eaten and "proceeded to drink whiskey", the court heard.
He had no meaningful recollection of what happened after that.