A man has avoided jail for his involvement in a fight that resulted in the stabbing of a former X Factor contestant.

Mohamed Hamdin, 22, was handed two years probation after pleading guilty to affray for his involvement in the fight outside a Sydney nightclub on October 14, 2012.

Former X Factor contestant Jelal Edmonds, 19, was stabbed in the torso after the fight broke out in Paddington, following a launch party for his new single.

Hamdin was involved in the fight with another man who pulled out a knife and stabbed Mr Edmonds, who performs as part of the Sydney rap duo Lazy J.

The man is expected to stand trial over the incident at a later date.

Magistrate Lisa Stapleton told a Sydney local court on Thursday the act of affray was "reprehensible", but noted that it was separate to the stabbing.

Lazy J came into the public eye in 2009 when the duo made it to the top 24 of X Factor Australia.