Pete Doherty, the troubled former boyfriend of Kate Moss, was sentenced to 12 months of community service Wednesday for possessing drugs.
Doherty, 26-year-old front man of the group Babyshambles, had earlier pleaded guilty to the charges.
He spoke only to confirm his name and address, and appeared disoriented during the hearing at Ealing Magistrates' Court in west London, glancing frequently toward supporters in the public gallery. They burst into applause when it became clear Doherty would not be going to jail.
Judge Ann McLaughlin warned Doherty that if he broke the drug rehabilitation requirement of his community service order he would be brought back before the court and might go to jail.
The maximum sentence for possession of Class A drugs such as heroin and cocaine is seven years in prison.
She ordered Doherty to submit to a drugtest each month and told him to return to Thames Magistrates' Courton March 8 for a review of the order.
Prosecutor Bryony Derbyshire had toldthe court Doherty was stopped by police in London on Nov. 30, andheroin and cocaine were found in his car.
He was stopped again four days later,when police found heroin, morphine, crack cocaine and marijuana inhis car.
Doherty was again stopped by police inLondon on Jan. 26, when he was found to be carrying heroin. Hepleaded guilty at three earlier hearings to seven counts of drugpossession in relation to these incidents.
Doherty's lawyer, Sean Curran, hadargued against a jail sentence.
"He is only a harm to himself, and thereal shame here would be if he did not receive the treatment heneeds," Curran said.
Moss, 31, lost modeling contracts withH&M, Burberry and Chanel after the Daily Mirror tabloidpublished pictures of her allegedly using cocaine in a west Londonmusic studio where Doherty, then her boyfriend, was recording withhis group Babyshambles.
She later went into a rehabilitationclinic in Arizona and has since resumed her modeling career.