LOCKPORT – A North Tonawanda sex offender was sentenced Friday to four years in prison and 10 years’ post-release supervision for violating the terms of his probation by committing another sex crime.

Robert W. Miller, 37, of Oliver Street, was charged in December with having sexual contact with a 17-year-old boy. He pleaded guilty to sexual misconduct and was already in Niagara County Jail serving a sentence that was to have expired April 17.

County Judge Matthew J. Murphy III said he gave Miller a chance by placing him on probation in December 2009, after his guilty plea to first-degree sexual abuse for molesting a 14-year-old boy in North Tonawanda the previous year. He gave Miller another break by leaving him on probation after he was found to have viewed pornography in 2010.

“I’m not going to be made a fool of a third time,” Murphy said.