Is there another Andy Capp? The one I know from the cartoon is a feckless layabout, fond of drinking and gambling but not especially known for racism.
Well, Christie originally used the word in title of the book that was called And Then There Were None in the US. The use of the word was regarded differently in the UK in 1930s (and even much later, into the 70s at least).
<snip>
I am reminded of the story about the movie
Dam Busters. Wing Commander Guy Gibson had a black Lab named "******", who was a darling of the Lancaster squadrons being trained for the eponymous dam attacks. He would accompany Gibson on training flights, and hung out with the pilots. He had a reputation for liking his beer. (Yeah. The dog.)
The dog was popular enough that his name was used as the code word to signal the success of the mission against the Möhne Dam, " -. .. --. --. . .-.". (I hope I just didn't get in trouble for trying to evade the auto-censor.

)
By tragic coincidence the dog was killed by an automobile the night before that mission.
All in all this made it somewhat inevitable that the dog would become a notable character in both the book published in 1951 about the raids and the movie that was made from it only four years after the book came out.
The dog's name was used ... unaltered ... in both the book and the movie without causing any particular notice. As one of the actors in the film commented in an interview about the movie half a century later, when asked if anybody had made any comments about the name when the movie was being made, "No, none at all. Political correctness wasn't even invented, and an awful lot of black dogs were called ******."
This changed with airings of the movie decades later, starting with an ITV showing in the late 90s, in which all references to the dog's name were cut.
Many people were not pleased, and ITV blamed it on an overzealous underling.
Since then showings of the movie have ranged from leaving it alone to dubbing in alternate names. "Trigger" has been used as a replacement.
(But they still aired the Morse Code signal "-. .. --. --. . .-." without change.

)