We'll have to see how this plays out legally. Innocent until found guilty.
However, I am surprised the judge let him play, considering he didn't stick to his agreement. If they had asked the judge first, then OK. Most judges don't like being ignored of their orders/agreements.
Doing drugs is bad enough. If he was selling, then he needs to do some time if found guilty. Yes, it may impact his basketball career. But long term, this kid needs to learn a lesson if found guilty. Many things in life much more important than basketball.