Copy the full text of the error message and paste it here.

Look at the line where the NPE happened, find the null variable and backtrack in the code to see why the variable does not have a valid...