A young man who stole breakfast rolls and soft drinks walked out of a shop to avoid a row with security staff, a court heard.
Eric Cahill (22) claimed he has changed since he became a father this year.
Judge David McHugh imposed a three-month suspended sentence.
The defendant, of Richmond House, Monks-town, admitted before Blanchardstown District Court to stealing four breakfast rolls and four bottles of Lucozade Sport worth €26.
The theft took place at Spar in Mulhuddart last June 18.
Sgt Geraldine McManigan said Cahill went into Spar shortly after 8.30am and walked out with the rolls and drinks.
Defence solicitor John Shanley said Cahill, who had €26 compensation with him in court, had recently served a 10-month sentence.
Before he went to jail, his girlfriend told him she was pregnant.
She has since had the baby, and Cahill had changed since the birth, Mr Shanley said, and was staying out of trouble.
He also said Cahill left the shop because he wanted to avoid an altercation with security staff.