Australian law firm Hall & Wilcox has succeeded in an appeal to allow tennis star Novak Djokovic to remain in the country and avoid having his visa cancelled amid the threat of deportation.

In overturning the Australian government’s decision to detain the world number one, a judge decided to quash the decision to cancel the star’s temporary activity visa, agreeing with the applicant that he should be freed from detention “immediately”. But the government warned that it may make a new attempt to cancel his visa.