legal ground
People's Republic of China (PRC) Lawyers Law Article 37 The personal rights of lawyers in their practice activities are inviolable. Lawyers' opinions on agency and defense expressed in court are not subject to legal investigation. Except for statements that endanger national security, maliciously slander others, and seriously disrupt court order. If a lawyer participates in litigation activities and is suspected of committing a crime, the investigation organ shall promptly notify the law firm where he belongs or the lawyers association to which he belongs; If a lawyer is detained or arrested according to law, the investigation organ shall notify the lawyer's family in accordance with the provisions of the Criminal Procedure Law.