Jason Merritt/Getty Images(NEW YORK) -- Amanda Bynes' bong-tossing case might be resolved by the end of the year.

Her attorney appeared in a New York court Thursday on behalf of the actress, who continues to receive treatment for a mental illness in a California hospital.

According to the New York Daily News, attorney Gerald Shargel said he's in "constant touch" with prosecutors and that both sides may resolve the matter by Bynes' next scheduled court date, Dec. 5. He hinted that court-ordered treatment could be part of a potential deal.

Bynes, 27, was charged with reckless endangerment and marijuana possession following a May incident in which she was allegedly caught smoking the drug in the lobby of her apartment building. When police arrived to her apartment, she allegedly tossed a bong out of her window.

Earlier this week, another of Bynes' lawyers reportedly told a California judge she is mentally unfit to stand trial in an unrelated DUI case. A mental health court will hold a hearing to determine her mental capacity in connection with that case.

Bynes has been hospitalized with mental illness since July. Her mother currently controls her finances as her temporary conservator -- a role that she no longer seeks to make permanent, according to TMZ, in part because she's been granted by doctors the power to make medical decisions for her daughter.