A DUBLIN man who was visiting friends in a flat complex decided to break into their home through a ground floor flat as he knew the owner but he then couldn't resist taking a laptop, a court heard.
Sean Kavanagh (29) said he was going to return the laptop but was afraid he'd get caught.
He said he was high on drugs at the time, and that was why he took the laptop.
The defendant, of Ashgrove, Kill Avenue in Dun Laoghaire, admitted before Dun Laoghaire District Court to burglary.
The incident took place at a flat at Abbey View in Monkstown on April 22 last year.
Garda Sergeant Mary Diskin said Kavanagh got into a ground floor flat through a patio door and took a laptop.
Kavanagh was later found with the laptop in an upstairs flat in the same house.
The court heard the gardai were called, and Kavanagh -- who has nine previous convictions -- was found in a top floor flat with the laptop.
Mr Lynam said Kavanagh is on methadone, and hopes to get on to a rehabilitation programme.
The defendant said his offending behaviour was due to his drug addiction, but that he is now clean and focused on reducing his methadone intake.
Judge Ann Ryan ordered a probation report and adjourned sentencing to a date in June.