The judge in the Derrick Rose rape trial just warned that he may declare a mistrial in the case -- over allegations the accuser's team did NOT turn over text messages that could help the NBA star.
The judge just ripped the accuser's attorney in court -- demanding the accuser prove she made an effort to turn over ALL of the text messages that were relevant to the case.
Rose's lawyer claims she purposefully withheld certain texts that may prove the sex in question was consensual ... and not rape.
The judge warned the accuser, "This is not a trivial matter" -- and has ordered the accuser's team to provide proof the texts were made available to Rose's team.
However, the judge says he would rather not declare a mistrial because it would likely mean the case would restart in the middle of the NBA season -- which would force Rose to miss games.
The judge said he would make the same considerations in a new trial if the accuser was a student and it would interfere with exams.
No word on when the judge will rule -- but we're guessing it'll be sooner rather than later.