A middle-aged man caught growing cannabis plants in his bedroom was introduced to the drug by his flatmates, a court heard.
Rory Kemple (51) claimed he only started smoking cannabis when he moved into the house in Lucan.
He apologised to the court, saying he has not touched cannabis since this incident, and was very embarrassed about his behaviour.
Judge David McHugh fined Kemple €300. "To say Kemple was naive and foolish was putting it mildly," the judge said.
The defendant admitted before Blanchardstown District Court to possession of cannabis and cultivating cannabis without a licence.
The incident took place at his home at Foxborough Downs in Lucan on November 4 last year.
Sergeant Mary Doherty said gardai obtained a warrant and searched the house.
During the course of the search, two cannabis plants as well as lamps and heating equipment were found in a wardrobe in the defendant's bedroom.
Sgt Doherty said the street value of a fully grown cannabis plant is €800. She said these plants were not fully grown, and had a total value of about €800.
The court heard Kemple has never been in trouble before.
Defence lawyer said Kemple was living in a house share at the time, and his flatmates introduced him to cannabis.
The lawyer said Kemple had never taken the drug before this.
She said he started buying cannabis but then lost his job. At that point, his flatmates advised him he could save money and fund his own cannabis habit if he grew his own plants.
The lawyer said Kemple fully co-operated with gardai.