A tradesman caught with a stolen power tool had been sold it at a price that was "too good to be true", a court has heard.
Daniel Gallagher (35) recklessly agreed to buy the "wacker plate" for €200 in what was described as an offer he "couldn't turn down".
However, he was immediately stopped by gardai on leaving the sale.
Gallagher, of Ardara, Co Donegal, pleaded guilty to possession of stolen property.
Judge David McHugh adjourned the case and said he would apply the Probation Act if the accused made a €500 charity donation.
Blanchardstown District Court heard the incident happened at Kylemore Road, Ballyfermot, last December 9.
Gallagher was self-employed and worked only occasionally in Dublin, his solicitor Valerie Buckley said.
On the day in question, he was only in the area for a short time and was "not entirely familiar with where he was".
He made no attempt to deceive or mislead gardai and was up-front about what he was doing, Ms Buckley added.
The court heard Gallagher had been given a phone number and was told he could "get certain tools".
He drove to the area to pick it up and as soon as he arrived, he should have driven off, Ms Buckley said.
Instead, he paid for the item, which at €200 was probably "too good to be true". He met gardai on leaving the area.
Judge McHugh noted that the defence was in terms of the accused's "recklessness" rather than intent.
Gallagher had no previous convictions and Ms Buckley asked the judge to consider allowing him to pay a charity donation to avoid a conviction.
Judge McHugh asked the prosecuting garda what his view was.
"He seems to be a genuine person, he got an offer that was too good to turn down and he got caught," Gda Barry O'Shea said.