A judge handed out tissues in court as a teary Kentucky jail inmate was allowed to hold his infant son for the first time.

News organizations report Jefferson County Judge Amber Wolf allowed 24-year-old James Roeder to meet his 1-month-old son during the unexpected encounter last week.

Roeder and his wife, Ashley Roeder, are co-defendants in a burglary case and had been ordered not to have contact with each other.

On Friday, in between the couple's hearings, Wolf made a temporary exception to the order when she heard James Roeder hadn't seen his son yet.

Video of the encounter has been widely shared on social media.

Court records show the Roeders are accused of stealing six flat-screen televisions from a warehouse.