True. Buy having a case dismissed is not the same as being aquitted.
Double jeopardy only applies (and there are cases where even then it doesn't) if the defendant has been charged, tried and aquitted by a jury.
It is not that simple. Double Jeopardy also applies to an acquittal by a judge, and dismissals, or mistrials, for certain causes, such as misconduct by the police, or prosecutor.
We would need to know what actually happened. Since the Judge took the time to berate the complaining witness, it sounds like there was a trial before the judge, and an acquittal.