I actually saw this happen in one of the games. JJ was initially trying to pass the ball to Yao but when he saw that he had an open lane, he took it to the hole. Yao sealed off his defender to let JJ get by and, guess what? Offensive foul on Yao Ming. Edit: Thanks fa7999.