There were two safeguards designed to prevent accidental missile firings: a pin, which, when inserted, physically broke the firing circuit, and there was the pigtail, which connected the firing circuit to the missile pod. Until the plane was on the catapult ready to take off, the pin was supposed to be inserted, and the pigtail left disconnected. Once the plane was on the catapult, an accidentally launched missile would have zoomed down the deck and crashed into the sea harmlessly.
Two things happened, disabling both safeguards:
The pilot of the plane which launched the missile testified that the firing occurred at the moment he switched his plane from external to internal power.
This is correct, other than I find the wind pulling the pin out hard to believe. You had to depress a plunger to pull the pin.
On land this is how we armed rocket pods. Sat at the end of the runway more than a few times plugging in connectors and pulling pins. The drill was to exit under the plane and show the pilot a handful of pins. Same pin pulling for bomb racks.