When I put a secondhand loom on my bike, (to many messed with joins, electrical tape, and broken/nicked wires in the bucket), all bullet connecters were filthy, (more dirt than corrosion), and some of the connecters were disintegrating.
Replaced dodgy connectors. Took all of them apart and sanded/cleaned both male and female ends. Cleaned every single bullet connecter, using a ball end bit with my Dremel drill. Then WD40 on a cotton bud to clean the female and 1200 grit wet and dry soaked in WD40 to polish the male conecter.
Took both handle bar switches apart, cleaned and polished contacts, regreased with white lithium grease, fixed any loose or damaged wires.
Continuity tested every wire between any connecter before and after cleaning. Tested as I reconnected any connecter or up a switch and after a switch then on the wires from the last connecter either side and tested through each switch.
Removed, all earth/ground connections, cleaned and where they touched the frame
With a full charged battery and no running engine indicators flashed fast, strong and bright.
The only way, IMHO, to do to an older bike that you have recently got. Any bike it wouldn't hurt to do this to, as a 10 year maintenance procedure.
https://www.xs650.com/threads/continuity-testing-made-easy.49917/