Malcolm-Jamal Warner, who played Bill Cosby's on screen son Theo, has alluded to the fact that Cosby is being punished by the media and the public because he is black.

Though he did not say Cosby is ostracized because he's black directly, Warner pointed out that white celebrities like Woody Allen and Roman Polanski who are both accused of raping minors are 'celebrated,' according to TMZ.

Warner shared his views during his appearance on the show 'The Real' where he lamented the fact that the the Bill Cosby Show was taken off the air because it directly affects him and the other actors on the show.

Scroll down for video

Race?: Bill Cosby's on screen son Malcolm-Jamal Warner (left) wants to know why Bill Cosby (pictured right last month) is criticized more than Roman Polanksi even though they are both accused of rape

'I can't help but think about Woody Allen, Roman Polanski, Steven Collins,' he said, adding that their movies are still available.

Though, Warner said he is in no position to defend Cosby, nor is he in a position to 'throw him under the bus.'

Warner last year said: My biggest concern is when it comes to images of people of color on television and film, no matter what ... negative stereotypes of people of color, we've always had 'The Cosby Show' to hold up against that.

'And the fact that we no longer have that, that's the thing that saddens me the most because in a few generations the Huxtables will have been just a fairy tale.'

Bill Cosby's criminal sex assault case has was put on hold this week while judges consider his request to have it thrown out before trial.

The Pennsylvania Superior Court granted Cosby a postponement Tuesday while it decides whether to hear Cosby's pre-trial appeal. His preliminary hearing had been set for next week.

Cosby, 78, is accused of drugging and molesting Andrea Constand, 42, in his suburban Philadelphia home in 2004.

Malcolm-Jamal Warner strongly suggested that Bill Cosby was being ostracized for his alleged sex crimes because he is black whereas the work of Woody Allen (left) and Roman Polanski (right) is celebrated

She was working for Temple University's women's basketball team at the time.

He said he had a promise from a former district attorney that he would never be charged over his encounter with Constand.

As Warner pointed out, Cosby is not the only celebrity accused of abusing their power to control women.

Director Roman Polanski pleaded guilty to raping Samantha Geimer, 52, when she was just 13-years-old. He then fled from the United States in 1978 on the eve of sentencing.

Polanski was accused of playing Geimer with champagne and drugs at a Los Angeles photo shoot, taking topless photos and raping the teenager in the house of actor Jack Nicholson.

He pleaded guilty to unlawful sex with a minor and served 42 days in prison before fleeing the country the day before his sentencing. The United States has been pursuing him ever since.

Woody Allen controversially started a relationship with Mia Farrow's adopted daughter Soon-Yi when she was 21-years-old and when he was still dating Farrow. He later married her and the two are still married today.

Their relationship has remained a constant fascination in the media since it became public in 1992.

TV family: Malcolm-Jamal Warner is pictured here with his on screen father Bill Cosby who is accessed of raping scores of women throughout his career

It came just over a decade after Allen made the movie Manhattan, in which his character dates a college-age girl and puts it off as a fling until he realizes he loves her.

Dylan Farrow, who was adopted by both Farrow and Allen although they never married, maintains Allen sexually abused her as a child.

Allen wrote an op-ed in the New York Times defending himself, claiming Mia Farrow brainwashed Dylan into believing she was molested.

'Not that I doubt Dylan hasn't come to believe she's been molested, but if from the age of seven a vulnerable child is taught by a strong mother to hate her father because he is a monster who abused her, is it so inconceivable that after many years of this indoctrination the image of me Mia wanted to establish had taken root?' he wrote.

The actor who played Reverend Eric Camden, the virtuous father on long-running family drama 7th Heaven, is under investigation for child molestation.