The International Crimes Division of High Court in Kampala on Thursday released from prison former Makerere University researcher Dr Stella Nyanzi.
Nyanzi who has been at Luzira prison for months was last year convicted and sentenced to 18 months for harassing President Museveni.
She appealed against the conviction and sentence citing unfairness and that the trial court erred in law.
Justice Henry Peter Adonyo ordered for her “immediate release” from prison saying that Buganda Road trial magistrate, Gladys Kamasanyu, had no jurisdiction to convict Dr Nyanzi of cyber harassment.
Justice Adonyo said no evidence was adduced by prosecution showing the location- of the device- where the offence was committed; either Uganda or out of the country.
The judge ruled that prosecution did not as well ascertain the kind of device which was used to send as the digital prints were not presented before Buganda road.
As cited in the report by American Bar Association, the judge also concurred that Nyanzi and her lawyers were not allowed enough time to prepare their defence thus amounting to unfairness.
The ruling elicited feelings of excitement in a fully packed court as supporters and loved ones congratulated Nyanzi.
She collapsed as she was being helped to go sign her release papers.
Prison warders were later seen carrying her to a waiting prison car registration number UG 0172U.
Police even had to fire bullets to disperse her supporters who turned rowdy and demanded that she be released there and then.