N.Y. JUD. LAW § 494 : NY Code - Section 494: Attorneys may defend themselves

Search N.Y. JUD. LAW § 494 : NY Code - Section 494: Attorneys may defend themselves

The last section does not
  prohibit an attorney from defending himself in person, as attorney or as
  counsel, when prosecuted either civilly or criminally.