Judge being accused of legal malpractice