A misdemeanor gun charge against All-Star Cleveland Cavaliers guard James Harden in Texas has been dismissed after he completed an alternative resolution program allowing him to avoid a criminal record, court records show.

Harris County Criminal Court Judge Alex Salgado in Houston dismissed the criminal charge Thursday at the request of the Harris County district attorney's office following Harden's completion of an alternative resolution program.

Such programs allow defendants to avoid a criminal conviction by doing community service.