The comedian, who is known to be friends with the Pirates of the Caribbean star, was interviewed by street journalist Adam Glyn when he commented on the high-profile case.
He said: “I stay away from all that, I don’t really look at that celebrity stuff, even though this isn’t celebrity [stuff] is it – but I try not to have it in my head.
Watch Ricky Gervais call out ‘hypocrisy in Hollywood’ below…
“I don’t think either of them are going to come out of it as a win because all of your private stuff… I don’t know, I hate having to go through it and it’s even weirder that they televise a court case.
“So I don’t really do that stuff.”
Over on TikTok, users reacted to Gervais’ comments on the case, with many praising him for not getting involved.
One said: “He’s so right, the entire court case is a weird situation. Here, let’s point and laugh at a very serious court case that could become case law.”
“Well done Ricky,” added a second. “He could have taken that opportunity to make a humorous comment. Fair play to him playing it straight.”
A third remarked: “Poor Ricky… He was put on the spot and obviously didn’t want to comment negatively. I’ve never seen him stutter so much.”
However, others expressed their disappointment that the After Life star didn’t voice support for his friend, with one commenting: “I’m disappointed. I thought Ricky would have backed Johnny!”
Another chimed in, saying: “Pick a side! Left or right, heads or tails… There can only be one.”
Watch our Video of the Day below…