The U.S. Court of Appeals for the Eleventh Circuit has ruled that a legal malpractice insurer is not responsible for at least $7 million in legal expenses accrued defending a bankrupt law firm sued by an investment company whose manager was also a partner at the defendant firm.

It’s a cautionary tale for lawyers who advise outside entities while being part of their operation.