hi mate, I suspect the switch on the sidestand to be at fault, on modern bikes they are designed to cut out the engine if the bike is put into gear with the stand down so as to stop you riding off with the stand down, hope this helps, this is also linked to a switch on the clutch lever so check the wiring there as well,
nick
February 2009