A young man has avoided being sent to prison for possess- ion of a stun gun and drugs at his home.
Stuart Landy (20) had "lost focus" in life at the time he was caught with the drugs and weapon, a court heard.
Judge David McHugh put him on a probation bond for a year.
Landy, with an address at Kilmahuddrick Avenue, Clondalkin, was convicted of unlawful possession of a weapon and ecstasy at that address on October 4, 2013.
The case was before Blanchardstown District Court for a probation report.
After the death of his mother, Landy began using drugs because he had "lost focus and didn't care any more", said his barrister, Jennifer Jackson.
Ms Jackson said there were "a lot of positive" things in the probation report.
Landy was now clean and no longer hanging around with the same people.
He was due to start a work placement.
The court had previously heard that a stun gun and a small quantity of drugs were seized when gardai searched the defendant's home on foot of a warrant.
Landy took full responsibility and told gardai the gun was for "his own protection, ,the court had heard.
The DPP had directed summary disposal of the case in the district court and Judge McHugh had accepted jurisdiction to deal with it.