A rape victim with a history of mental illness has sued a Texas county alleging she was wrongly jailed after prosecutors said she refused to testify a second time against her attacker.

Attorney Sean Buckley said his client has bipolar disorder and had a breakdown in December while testifying in Harris County. She later walked into traffic outside a courthouse before she was involuntarily committed to a hospital psychiatric ward, according to Buckley.

She was discharged and then arrested as a material witness, according to the Houston Chronicle (http://bit.ly/2aAYBL7 ).

District Attorney Devon Anderson said the woman, who was homeless when she raped in 2013, was going through a "life-threatening mental health crisis" and told prosecutors she was not going to return to testify.

"If nothing was done to prevent the victim from leaving Harris County in the middle of trial, a serial rapist would have gone free — and her life would have been at risk while homeless on the street," Anderson said, in a video statement. "This was an extraordinarily difficult and unusual situation. There were no apparent alternatives that would ensure both the victim's safety and her appearance in trial."

Anderson said any claim that her office does not support crime victims is "outrageous."

The lawsuit also said the woman, while in custody, did not consistently get her medication, was attacked by another inmate and was later charged with assaulting a guard after having another psychological episode. The assault charge was dropped after the woman resumed her testimony in January. Her attacker was later convicted and sentenced to life in prison.

The lawsuit noted that data incorrectly entered into the jail booking system wrongly classified the woman as a sexual assault defendant, not a victim.

The federal lawsuit was filed Monday in Houston. It seeks unspecified damages for violating the 25-year-old woman's rights, including unlawful arrest.

___

Information from: Houston Chronicle, http://www.houstonchronicle.com