craving sweets first thing in morning

Lately I seem to grab anything sweet when I first get up. It's an awful habit. I think it's stress eating. How can I handle this? Does anyone else have this problem? My doctor is checking me for diabetes. Diabetes or not I still need to change this awful habit.