THREE intruders at a builders' suppliers were arrested after they got in through a cat flap, a court heard.
Stephen Byrne (21) and brothers Kirk (25) and Glen Shannon (29) admitted trespass charges.
They had initially been accused of burglary but those charges were withdrawn by the prosecution and were re-charged with the lesser offence.
The three defendants had the case against them adjourned to give them time to make charity donations.
Byrne, a father-of-one from Keeper's Road, Drimnagh; Glen Shannon of Cherryorchard Grove, Ballyfermot: and Kirk Shannon, of Ard Na Cluaine, Clondalkin, all pleaded guilty.
The incident happened at Ken Truss Ltd, Greenhills Road, Walkinstown on October 12, 2011.
Dublin District Court heard that gardai investigating an alarm heard noises coming from the builders' providers, which was unused at the time.
The noise was coming through a "large cat flap" and the gardai saw the three accused coming towards them.
The defendants had been cutting through the property to go to a cousin's house, their barrister said. The court heard the building had since been levelled.
Kirk Shannon was an unemployed labourer and Glen Shannon a father-of-one and an out-of-work landscaper, the court heard. Byrne, a father-of-one, was also out of work.
"They were mucking around and fully accept that they shouldn't have been there," their barrister said.
Judge Grainne Malone adjourned Glen Shannon and Stephen Byrne's cases to June 5 and said she would consider leaving them without criminal records if they each donated €500 to Crumlin Children's Hospital.
In Kirk Shannon's case, because he had previous convictions, she said she would consider not jailing him if he made the same charity contribution.