Defence lawyer Richard Leith said Finlayson had wanted to sleep off his "alcohol-induced state" and that a friend had told him the unit was unoccupied.
Judge Cameron said Finlayson had a "terrible" criminal history going back to 1986 with several convictions for dishonesty offending resulting in imprisonment.
He said that in sentencing Finlayson he had to denounce his conduct and attempt to deter him from reoffending.
"That's somewhat of a forlorn hope, I suspect," Judge Cameron said.
Finlayson was sentenced to one month in prison and was ordered to pay reparations of $134.40 for the broken window.