A star of the NBC comedy Ed expects a drug charge against him to be dropped next month because a witness and drug tests back his assertion he wasn't smoking crack with a homeless man in Brooklyn last summer, his lawyer said yesterday.

Josh Randall, who plays Dr. Mike Burton on the TV series, has said he was catching a bus at Navy Street and Flushing Avenue on July 31 when cops accused him of smoking crack with another man.

Nearby, cops found a crack pipe and glassine bag, both with cocaine residue, his lawyer, Kenneth Glassman, told The Post after Randall appeared at Brooklyn Criminal Court Wednesday for a pretrial hearing.

But drug tests came back negative on blood and urine samples Randall submitted to authorities the day after his arrest, Glassman said.

And the man who was with Randall has backed the actor's story, Glassman said. In a signed statement, the man said Randall gave him $20 for escorting him through the seedy neighborhood to a bus stop, the lawyer said.

For more news, entertainment and sports coverage, click here for NYPost.com.