Former Australian test batter Michael Slater had charges of domestic violence dismissed on mental health grounds in a Sydney local court on Wednesday.
Magistrate Ross Hudson ordered Slater to undergo a 12-month treatment plan under the care of a doctor.
The 52-year-old Slater, who worked as a television commentator after retiring from international cricket, was charged by New South Wales state police last October with stalking and intimidation of his ex-partner.
He later breached a restraining order by using a mobile phone to call and send dozens of text messages to his ex-partner and, in December, was ordered to check into a mental health facility as a condition of bail.
Slater did not appear in Waverley Local Court on Wednesday.