Just as Amanda Bynes tossed her bong out a window (allegedly), a judge has tossed her pot case out of court.

Last year the actress was busted for throwing a bong out of the window of her New York apartment when cops responded to complaints that she was smoking marijuana and acting erratically. She was charged with marijuana possession, evidence tampering and reckless endangerment.

But she had a shot at getting all charges dismissed if she kept her nose clean for six months. She did and now it's like the incident never happened. TMZ says the judge praised her recent behavior and then formally dismissed the charges and sealed the case.