The New York Knicks' trade last offseason for Andrea Bargnani is widely considered one of the worst of the past year.

“Getting anything for him was a surprise,’’ a Western Conference executive said. “But you get desperate. The guy has talent, a 7-footer, mobile, his first few years he made shots. But I question his love for the game and mental makeup. I’m surprised the Knicks didn’t do more homework on him.’’

“We wanted to give opportunity to our younger players and also for Andrea to find a better fit since it wasn’t working out here,” Masai Ujiri wrote in an email.

Bargnani is averaging 13.3 points on 44.2 percent shooting, but his defense and rebounding are a liability. Bargnani is shooting 27.8 percent from three-point range.

“They got him as a stretch 4, but he hasn’t been a stretch 4 for years,’’ an NBA scout said.