Nothing's really jumping out at me here.

I was thinking fuel delivery problem, but if it dies suddenly without sputtering (like it does when you run out of gas), then pretty much the only other thing it could be is electrical/ignition-related.
Check the main fuse and it's connecting clips. Make sure they're clean and making a good connection and replace the fuse with a new one. And check all the wiring connections relating to the ignition.
Do you have the stock breaker points style ignition or a points-less system?
When the bike dies, will it still crank over easily with the electric starter but just not start, or does it turn over slowly?