Rugby league players behaving badly is nothing new.

In the past we have seen them in court for drink driving, assault, or taking drugs.

But former tough guy Ben Kennedy's run-in with the law was, as a magistrate put it today, both "unique and bizarre".

Former NRL star Ben Kennedy has escaped conviction over a drunken trespass. Picture: 9News (9news)

On the night of June 6 this year, a heavily intoxicated Kennedy was found wandering in the Australian Border Force's sniffer dog training facility at Banksmeadow in Sydney's south.

Hours earlier Kennedy, who played 13 State of Origin games for New South Wales, had attended an Origin function as the Blues clinched the series in Melbourne.

How he got to Banksmeadow and how he got inside the high-security facility is not clear.

Kennedy played 13 State of Origin games for NSW. Picture: AAP (AAP)

Kennedy's lawyer Paul McGirr today told Waverley Court that when his client was spoken to by police, he said he did not know "where he was and how and why he got there".

Kennedy blamed the incident on a combination of alcohol and painkillers.

He also told police he used a brick to smash the window of a car parked in the facility because he was cold and he was trying to stay warm.

Kennedy escaped conviction, instead being placed on a 12-month good behaviour bond.