A few more details would help -has this problem just started,how long have you had the bike etc. but for now a couple of things come to mind.
These bikes are prone to stalling if the correct starting procedure is not followed:Turn the ignition on,wait for the temp light to go out then push the start button with the throttle closed.This last part is important!
Secondly,the idle speed is, in part, governed by the road speed.As you slow down the idle speed is held high (2000rpm or so) and then drops to 1500 once the bike is stationary.This is an anti stall measure.Check if the speedo sensor on the left hand side of the rear wheel is clean.
If the engine cuts out when riding rather than idling the usual cause is loose battery connections.
Tony