In addition to the sidestand switch mentioned above, you may be suffering an intermittent problem with the switch on the clutch lever.
If the engine pulls with the clutch in and the oil is warm, it's time to adjust the clutch... but the engine should still start (cold or warm), as the starter circuit doesn't monitor the clutch adjustment, just when the lever is pulled in.