A young man who escaped from garda custody after he stole a bottle of wine was following his friend when he jumped from the back of a patrol car.
Craig Carroll (21) had never been in trouble before and fled from the patrol car "in sheer panic".
Judge David McHugh accepted that Carroll was not the protagonist in escaping custody and he struck out the charges.
The defendant, of Back Lane, Dublin 8, admitted before Blanchardstown District Court to stealing a bottle of wine worth €11 from SuperValu, Main Street, Finglas, last September 5.
He also admitted escaping from lawful custody following his arrest.
Gda Kevin Woods said he was passing SuperValu when he was flagged down by security staff who said a number of individuals had been in the shop and stolen some items.
Gda Woods said Carroll stole a bottle of wine. He was arrested and told he would be taken back to the garda station.
The officer said Carroll was placed in the back of the patrol car, but jumped out and ran away.
The defendant was chased by gardai and re-arrested.
Gda Woods said Carroll was very apologetic for his behaviour.
The court heard he had never been in trouble before.
Defence solicitor Wayne Kenny said Carroll's co-accused jumped from the patrol car and fled because he had a substantial number of outstanding warrants.
Gda Woods accepted Carroll was following his friend out of "sheer blind panic".
Mr Kenny said Carroll, who is unemployed, has had an extremely difficult life.
The defendant's father died when he was only two-days-old, his mother died when he was 12 and he was raised in foster care.
Carroll sat his Leaving Certificate and studied catering and hotel management.
The court heard he was living in hostels at the time of these offences but is now living in Celbridge, Co Kildare.
Mr Kenny also asked the judge to be as lenient as possible, saying Carroll was very much on his own.