How do you handle business partnership, when one of the partners gets involved in litigation or legal cases unrelated to the business.

Does it matter if partner is minority vs majority shareholder ? what provisions can help protect the business entity in case if it comes to that.