I had what I thought was a very minor run-in with a bit of landscaping rock today that completely stopped me in my tracks.
I managed to bust my kickstand sensor - this is the circular bit of plastic that sits around the pivot on the kickstand. (I'd post a picture but it's now in several pieces and no long on the bike).
The kickstand sensor works with the neutral sensor to ensure that you never accidentally drive away with the kick stand down, because that is bad. However it turns out that this sensor is really quite fragile and complex (all these little springs in there!) and it kindly fails "safe", which means that if you damage it like I did you won't be able to drive anywhere until you replace it or work around it.
The work around is quite simple - NOTE THAT THIS WILL MAKE YOUR BIKE POTENTIALLY MORE DANGEROUS TO RIDE! BLAH BLAH DON'T BE STUPID BLAH
If you do need to work around the sensor, you can do the following:
Cut through the three wires that lead (in a bundle) into the sensor/switch. (I removed the switch but it turns out that's not needed for for a quick and dirty hack.)
There will be a black wire, a green wire and a green/white wire.
Strip a bit of the insulation off of the green and green/white wires and twist them together and voila - you can ride again