A builder caught with pepper spray on him when he was searched by gardai had it for his protection while he was working in "dodgy areas" of Dublin, a court has heard.
Piotr Lastowski (44) had a canister of the spray in his possession when gardai searched a car in the west of the city.
The case was struck out, leaving the accused without a criminal record, after he made a €200 donation to a garda charity.
Lastowski, a father-of-two of Park Boulevard, Tyrrelstown, pleaded guilty to unlawful possession of a canister of pepper spray at Dunsink Lane, Castleknock.
Garda Sergeant Maria Callaghan told Blanchardstown District Court gardai carried out a search of a black Seat Cordoba on June 1 last year and a canister of pepper spray was found on Lastowski's person.
Lastowski was arrested and charged.
The accused had no previous convictions, the court heard.
Lastowski had been living in Ireland for the past 12 years, had worked in construction and had never come to the attention of the gardai before, his solicitor John Wood said.
He was now planning to move back to Poland.
The accused had been working in "some dodgy areas" and had the pepper spray for his own protection, Mr Wood said.
Sgt Callaghan said she was not aware of the circumstances in which the accused had the pepper spray.
Mr Wood said the incident had happened in June last year, it had since been before the court six times and his client had always appeared.
There had been a possibility of further charges but that was not now the case.
Judge Gerard Jones asked if putting the accused on a peace bond would prevent him from travelling, but Mr Wood asked the judge if he would instead consider striking the charge out on payment of a charity donation.
The judge said he wanted the defendant to make a €200 contribution to the Garda Benevolent Fund and adjourned the case.
This was done and the case was struck out.