Bill Cosby’s former attorney was dismissed today from a defamation lawsuit filed against him and the comedian by former model Janice Dickinson, who alleges she was sexually assaulted by Cosby more than 30 years ago.

   Dickinson sued Cosby in May 2015, saying she has been re-victimized and her reputation has suffered because of denials by his then-lawyer that the comedian drugged and raped her in a Lake Tahoe hotel room more than 30 years ago.

   She filed an amended complaint in November, adding Cosby’s former attorney, Martin Singer, as a defendant.

   Los Angeles Superior Court Judge Debre Katz Weintraub ruled, however, that Dickinson could not amend the complaint to add Singer, since was was aware of his alleged comments before the original lawsuit was filed.

   Cosby’s legal team argued that Dickinson’s attorneys are barred from amending the original case while a hearing is pending on a motion to dismiss the original lawsuit. The amended complaint is “an 11th-hour attempt to plead around” the pending dismissal motion, Cosby’s lawyers state in their court papers.

   Cosby fired Singer in October. Singer’s attorneys have filed papers in support of Cosby’s motion to dismiss the amended complaint.

   Dickinson, 60, is one of dozens of women who have accused Cosby, 78, of sexual assault. Another hearing in the lawsuit was set for Feb. 29.

   The comedian had not been charged with a crime until Dec. 30, when he was charged in Pennsylvania with aggravated indecent assault. Prosecutors allege he sexually assaulted Andrea Constand, a former Temple University, in January 2004 after plying her with drugs and wine.