Cal. Civ. Proc. Code § 410.42
(a) The following provisions of a contract between the contractor and a subcontractor with principal offices in this state, for the construction of a public or private work of improvement in this state, shall be void and unenforceable: