A young man who stole a parcel of iPhones from a delivery depot had developed a cocaine problem and run up a drug debt, a court heard.
Paul Keating (23) was seen on CCTV taking the package containing two phones worth a total of €738.
Judge David McHugh said he would order him to carry out 240 hours of community service instead of a five-month prison sentence if he is found suitable.
Keating, of Brookhaven Grove, Blanchardstown, pleaded guilty to theft.
Blanchardstown District Court heard the incident happened at DPD Ireland, Rosemount Business Park, Ballycoolin, on January 12 last year.
Sgt Maria Callaghan said the victim reported the theft on January 19, telling gardai he had viewed CCTV and saw Keating taking his parcel containing two iPhones.
When questioned, Keating said he took the parcel, but it contained only one mobile phone, and he sold it on to someone else.
The property was not recovered.
Keating also admitted separate motoring offences – driving without a licence or insurance three times in west Dublin in 2016, 2017 and 2018. Keating had five previous convictions for motoring offences.
He had wanted to join the Army or fire brigade but went “off course,” developed a cocaine problem and ran up a substantial drug debt.
This got him into a lot of problems and things spiralled out of control, his lawyer said.
He had now completely disassociated himself from peers he had been hanging around with and was looking for work.
Judge McHugh ordered a community service suitability report and told Keating to pay compensation.
The case was adjourned.