LOCKPORT – William A. Robinson, 51, of Phelps Street, Lockport, admitted in Niagara County Court Thursday that he stole copper pipes from a house on Grand Street in Lockport and sold the metal to get money to buy drugs.

Robinson admitted to third-degree burglary and was assigned by Niagara County Judge Matthew J. Murphy III to the judicial diversion program of court-supervised drug treatment.

If Robinson succeeds in the program, he will receive a misdemeanor and a probation sentence, but if not, he could spent as long as seven years in state prison.

The burglary occurred Nov. 26. Thirty pounds of copper was sold at Lock City Metals on West Avenue, Assistant District Attorney Claudette S. Caldwell said. Robinson was ordered to pay $1,100 in restitution to the homeowner.