I know of one airline that has issued all their pilots with their own individual cups with sealable lids to prevent spills causing damage to avionics which had been costing them a lot of money. One individual dropped a full cup of Coffee between his seat and control column. The only thing damaged was his pride as he had to get down on his hand and needs and use a lot of paper towels to dry the floor.
It's amazing what trouble liquids can cause on an aircraft. DHL disconnected the foot heaters on their B757's some years ago after snow melting off a pilots shoes caused a short circuit and associated smoke.