A law firm that engaged a retiring judge in employment talks while he presided over one of its cases is not liable for damages to the other party in the case, the Appellate Division ruled Wednesday.

The appeals court affirmed the dismissal of legal malpractice and deprivation of due process counts against Hackensack’s Herten, Burstein, Sheridan, Cevasco, Bottinelli, Litt & Harz and attorney Thomas Herten.