It looks like Tuesday was Michael “Mickey” Madden’s lucky day. The Maroon 5 bassist appeared before a judge in Manhattan on drug charges stemming from a Jan. 21 incident involving Ivanka Trump’s ex-boyfriend James Gubelmann — and things went swimmingly.

According to the New York Daily News, Madden was granted conditional dismissal of all his charges. He has agreed to complete just one day of community service in exchange for his freedom and a clean record. Madden’s lawyer, Joe Tacopina, says the Grammy award winner never had the drugs in his possession. The attorney blames Gubelmann, 35, who is simply an acquaintance, he says. All charges against Madden, 36, will be removed from his record in six months time.

“[Madden] was purely innocent. He didn’t possess any narcotics,” Tacopina said. “The individual he was with did, but he didn’t.”

Gubelmann was offered a similar deal. According to the Daily News, a judge granted him an adjournment in contemplation of dismissal. Rather than agree to community service like Madden, Gubelmann will be entering a treatment facility. Trump, 34, has not commented on her former beau’s arrest nor his entrance into rehab. The pair are said to have dated for more than three years, ending in 2005. Trump is now married to Jared Kushner.

According to police, Madden was seen passing cocaine to Gubelmann outside of Dymphna’s bar in the East Village neighborhood at 1:30 a.m. on Jan. 21. Both were arrested and slapped with appearance tickets for later that same morning.

Madden has not addressed the situation on social media or otherwise.