This question already has an answer here:
After pressing the log in button it would said updating minecraft and after that it said
Failed to launch
Fatal error occurred (4): null
I have forced an update and updated Java but it still doesn't work. Not even the demo works.