A case against American actress Amanda Bynes for possessing marijuana and throwing a bong out an apartment window last year was dismissed on Monday by a New York judge, according to The Associated Press.
Bynes was arrested last May after an employee of the New York City building in which she has an apartment reported to police that someone had been smoking marijuana in the building, the AP reported.
Bynes was taken into custody after she threw a bong, which is used for smoking marijuana, out a window of the 36th floor apartment, according to the AP.
The prosecution and her lawyer Gerald Shargel agreed earlier this year that the case should be resolved by an adjournment and possible dismissal if she stayed out of trouble for six months and met court demands, the AP reported.
"We demonstrated today that she was in compliance and as we expected the case was dismissed and sealed," Shargel said, according to the AP. The 28-year-old actress did not appear at the hearing at Manhattan Criminal Court.
The court previously had said the charges would be dismissed if Bynes stayed out of trouble and went to counseling twice a week, the AP reported. Shargel submitted an affidavit saying Bynes had complied with the court's requirements.
"She did her counseling and it's now all behind her," Shargel said outside court, according to the AP. Bynes gained fame as the 13-year-old star of "The Amanda Show" on the Nickelodeon TV network and in the 2010 film "Easy A."
Earlier this year she pleaded no contest to a 2012 misdemeanor charge of reckless driving with an alcohol component in Los Angeles, according to the AP. She was given three years' probation and told to enter an alcohol education programs for three months.
In February, Bynes pleaded no contest to alcohol-related reckless driving for clipping a Los Angeles County sheriff's patrol car in April 2012m the AP reported.