A thief who stole hair straighteners from a supermarket had lived a "life of criminality", a court heard.
Edward Lawrence (35) had the case against him adjourned for a community service suit- ability report.
Lawrence, of Ballyfermot Parade, Ballyfermot, pleaded guilty to theft.
Dublin District Court heard the incident happened at Tesco, Ballyfermot Road, last September 2.
The accused was stopped by security after passing all points of payment with two hair straighteners and a shaver, together worth more than €300.
He was detained, gardai were called and he was arrested.
The court heard Lawrence had 16 previous convictions, 15 of which were for offences outside the jurisdiction.
Lawrence had moved to the UK with his family when he was a child, his solicitor John Shanley said.
He left school at 12 and began taking drugs at 14. His last conviction was in the UK.
He developed psychiatric issues when he was in custody and not using any drugs.
Lawrence had been on methadone, but when he came off it completely he realised it "wasn't the best thing he could have done" and he relapsed, Mr Shanley said.
Lawrence had been "involved in a life of criminality", Judge John Hughes said.
The accused had been making "serious efforts since his release from custody", Mr Shanley said.
Judge Hughes said he would order the accused to carry out 150 hours of community service instead of a three-month prison sentence.
However, the court heard that a fuller assessment was needed, and the case was adjourned to a date next month.