Cal. Evid. Code § 782.1
The possession of a condom is not admissible as evidence in the prosecution of a violation of Section 372 of, or subdivision (a) or (b) of Section 647 of, or former Section 653.22 of, the Penal Code, if the offense is related to prostitution.