A beautician had just appeared in court on a theft charge when she walked out and shoplifted cosmetics less than an hour later.
Deborah Armstrong (40) left Blanchardstown Courthouse and went into the neighbouring shopping centre where she stole €237 worth of goods from a pharmacy.
The mother-of-two was "confused" due to the pain medication she is taking for a back injury, the court heard.
Judge David McHugh gave her a three-month suspended sentence. Armstrong, of Shancastle Lawns, Clondalkin admitted before Blanchardstown District Court to stealing cosmetics, worth €237, from Boots in Blanchardstown on December 10 last.
Sergeant Maria Callaghan said Armstrong left Blanchardstown court and went over to Boots and stole cosmetics.
Sgt Callaghan said the defendant walked out of the shop without paying for the goods.
The sergeant said Armstrong was stopped by security staff and the items were recovered in a resalable condition.
The court heard Armstrong has seven previous convictions. She was a trained beautician but is out of work.
Defence barrister Ciaran MacLoughlin said Armstrong was in a car accident last year and damaged vertebrae in her back. He said she is in constant pain and on a lot of pain medication, including oxycodine, and can be "confused".
Mr MacLoughlin said Armstrong has also had a very difficult year, as both her sister and niece passed away.
He said Armstrong's mother was in court and was willing to look after her.
Suspending the sentence for a year, Judge McHugh said Armstrong was lucky her mother was willing to care for her.