I spent a lot of my life teaching fellow pilots and cabin crew to ALWAYS pass drinks to the outside of the pilots and to put them into the cup holders provided in just about every aircraft that I flew. NEVER, EVER pass a drink through the middle, IE: over the centre console because a spillage could have disastrous consequences.
So far, so good.
One day we were passing through some west African airfields on our way south. After take-off, up came a welcome coffee which was duly delivered in exactly this way. Sadly, it went straight through the cup holder and hit the flight deck floor because it was a little bit smaller than the standard fitted cup holder. Luckily, neither I nor the avionics bay downstairs were affected.
Liquid and wiggly amps make poor companions.