HARTFORD, Conn. (CBSDFW.COM/AP) — Police say a man answering to a stolen car charge drove a stolen car to court in Connecticut.

Authorities say 25-year-old Jonathan Rivera was at the Hartford Superior Court Wednesday to appear before a judge on a charge of first-degree larceny and tampering with a motor vehicle from February.

Parking authority agents scanning license plates outside the courthouse found a car that had been reported stolen.

Police kept an eye on the car, and they arrested Rivera when he got inside and tried to drive away.

Rivera has been charged with second-degree larceny and taking a motor vehicle without the owner’s permission.

It’s unclear if he has a lawyer or if the car he drove to court was the same one his court case was centered on.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)