Bruno Mars got a lucky break in court Friday. AP reports confirm that the pop singer is accepting a plea deal that allows him to pay a fine, serve probation and have a felony cocaine possession charge against him dismissed.

The 25-year old crossed the line in Sept. 2010 when he was arrested in Las Vegas with possession of a controlled substance. Mars performed at the Wasted Space nightclub at the Hard Rock Hotel & Casino before he was suspected by a bathroom attendant of doing drugs in the men's room. A security guard was alerted and Mars, confronted on the spot, allegedly reached into his jeans and handed over a bag containing more than two grams of cocaine.

The 'Grenade' and 'Just The Way You Are' singer told an officer he had acted foolishly and never tried drugs before in his life. If convicted, Mars could have been sentenced to four years behind bars.

Mars accepted a deal where he will pay a $2,000 fine, perform 200 hours of community service and complete drug counseling. If he has no other run-ins with the law for a year, no conviction will remain on his record.