NBA and NCAA are usually officiated by crews of three officials. If one goes down, they (generally) continue with two.
Playoff/tournament games, and the like, will generally have an alternate official available at the table to take the injured official's place in a case like this.