A father-of-two who stole a bottle of aftershave worth €1.50 "thought it was a tester".
Paul Murtagh (30) had been taking tablets on the day of the offence and had no recollection of stealing what was described as a "not very high-spec" fragrance from a city centre discount store.
Murtagh, with an address at Marigold Avenue, Darndale, pleaded guilty to stealing the aftershave, as well as four packets of biscuits.
Judge Bryan Smyth said he would put what happened down to a "blip" and dismissed the charge.
Dublin District Court heard the accused went to Dealz discount shop on Liffey Street last January 27 and stole four packets of biscuits worth €3, as well as a bottle of aftershave priced at €1.50.
The court was told Murtagh passed all points of payment and opened the bottle of aftershave.
"I don't think it was a very high-spec brand," Murtagh's lawyer told the court.
"It doesn't look like it," Judge Smyth said, noting the low value.
"I think he thought it was a tester," the defence lawyer said.
The court heard Murtagh had previous convictions for offences including possession of drugs for sale or supply.
At the time of the Liffey Street offence, he had suffered a relapse and started taking benzodiazepines.
He was forgetful and had no recollection of what happened, his lawyer said.
The items were not taken for profit or resale, the court heard.
Judge Smyth asked if the accused had the compensation in court.
Murtagh handed over €10 and the judge said that while the amount was €4.50, the shop had also had to go to the trouble of pursuing the case.