The NBA and its referees union agreed on a two-year contract Friday, ending a lockout of more than a month, according to an Associated Press report.

The officials ratified the deal that was reached earlier this week in a vote Friday night. No details of the vote were provided, nor were terms of the agreement.

?We are pleased to reach this agreement,? NBA commissioner David Stern said in a statement.