That exception is unrelated, it just tells you you couldn't log in, since you normally don't use an account inside your development setup.
I think there is a way to use your mojang account, but it's not really needed.
If you have code depending on names you can just add -username NICK to your run configuration to test that stuff.
Your crash should have another reason.