Java NullPointerException: Cannot invoke ... because ... is null
What Java's NullPointerException means, how to read the message that says which value was null, and the four places beginners usually meet it, with the fix for each. With code you can run.
