DEKALB, Ill. -- Northern Illinois caught Buffalo flat-footed just before the buzzer.
Reserve Noah McCarty got open in the paint, caught a pass and hit a layup with 2 seconds to play, and the Huskies upset the 14th-ranked Bulls 77-75 on Tuesday night. It was Northern Illinois' first home victory over a ranked team in 47 years.
"I thought the guys put together a complete, 40-minute game," Northern Illinois coach Mark Montgomery said. "I think it was the best game -- and I've been here eight years -- that I've been a part of. We grew up tonight."
McCarty took a feed from Trendon Hankerson and banked in the game-winning shot just nine seconds after Buffalo had tied the game on C.J. Massinburg's 3-pointer.
The Huskies shot 50 percent (27 of 54) from the field, while the Bulls went 22 of 60 (36.7 percent). Northern Illinois also out-rebounded Buffalo 40-37.
"If we play with more effort, we win," Buffalo coach Nate Oats said. "They played harder than us."
Buffalo went 9 for 30 (30 percent) from 3-point range.
"If we made one more, we win," Oats said. "But it shouldn't have come down to that."
Northern Illinois' last win over a ranked team anywhere was in 1973 over Oral Roberts at the Chicago Stadium. A year earlier, the Huskies beat No. 5 Indiana in DeKalb.
The Huskies have won two straight in the series, having snapped a 13-game losing streak against the Bulls in 2018.
"That's two years in a row they've beaten us," Oats said. "And they did it tonight with German playing only 24 minutes and he still scored 20 points."
The Huskies led 73-66 with 1:26 remaining before Massinburg rallied Buffalo by scoring nine points in just over a minute, hitting two 3-pointers and making three free throws. Northern Illinois' biggest lead was 10 points early in the second half.
Buffalo: The Bulls are ranked for the 11th straight week, tying a MAC record set by Bowling Green in the 1961-62 season. Buffalo was also the first MAC team to start 17-1 or better since Western Michigan opened 1975-76 with 19 consecutive victories.
Northern Illinois: German, the Huskies' leading scorer, has now scored in double figures in 51 consecutive games and 64 of his 80 career appearances.
The teams combined for 50 fouls. The Huskies hit 19 of 24 free throws while the Bulls were 22 of 31 from the line. Massinburg and Thorpe each hit 9 of 10.
The Bulls were highest-ranked team ever to play at NIU's 16-year-old Convocation Center. The 1972 win over Bob Knight-coached Indiana was at the old Chick Evans Field House. The last ranked team to visit NIU was No. 18 Temple in 2009.
Buffalo concludes a two-game trip on Friday at Kent State, part of a run of five of seven games away from home.
Northern Illinois visits Akron on Saturday.
More AP college basketball: https://apnews.com/Collegebasketball and https://twitter.com/AP-Top25
SEC cancels spring meetings because of coronavirus
The SEC has canceled its annual spring meetings scheduled for the last week of May because of issues related to the spread of the coronavirus.
Arizona big man Zeke Nnaji entering NBA draft
Arizona freshman Zeke Nnaji, who emerged as one of the top big men in college basketball, is entering the 2020 NBA draft.
Joe Scott returns to coach Air Force after 16 seasons
Joe Scott, who last coached Air Force from 2000 to '04, is returning to lead the Falcons after Dave Pilipovich was fired earlier in March.