Amanda Bynes will have a drugs-related case against her dismissed if she stays out of trouble for six months and goes to counselling.
A Manhattan judge allowed the adjournment in contemplation of dismissal, which means the troubled actress does not have to admit guilt. She must attend counselling twice a week for six months.
The Hairspray star didn't appear in court. An affidavit filed on her behalf by lawyer Gerald Shargel said she understood the agreement.
Bynes was charged last spring with reckless endangerment and marijuana possession after building managers called police and accused her of smoking pot in the lobby of her Manhattan apartment.
When officers entered her 36th-floor apartment, they said they saw her heave a bong - a filtration device often used in the smoking of cannabis - out the window.