A lawyer is facing drug possession charges after a bag of cocaine allegedly fell from his pocket outside a courthouse.

Corey Cullen is reported to have dropped the clip-seal bag out the front of Brisbane Magistrates Court on August 30.

Security guards found the bag on the ground and watched CCTV footage back to determine where it came from, The Courier Mail reported.

Corey Cullen is believed to have dropped the clip-seal bag out the front of Brisbane Magistrates Court on August 30

Police say tests confirmed the substance inside the bag was cocaine.

The 30-year-old was charged with possession of the dangerous drug cocaine on September 23.

Magistrate Coates granted Mr Cullen bail and agreed he did not have to appear at his next court date

He appeared in Brisbane Magistrates Court on Wednesday where Magistrate Suzette Coates initially refused to hear the matter due to her history dealing with him as a lawyer.

'Oh, Mr Cullen is the ­defendant,' she said when she realised.

'I would feel most uncomfortable with doing that and I need to get a magistrate outside the jurisdiction.'

Mr Cullen's defence lawyer eventually spoke with her to inform her he was simply hoping to adjourn the matter.

Magistrate Coates granted Mr Cullen bail and agreed he did not have to appear at his next court date.

'I won't be too hard on you. It's very humiliating to appear on that side and I feel very sorry for seeing you there.'