Glad you have figured it out.
Type: Posts; User: Norm
Glad you have figured it out.
What variable has the null value? Did you print the values of all the variables used on the line where the exception happened? Which one was null?
data.addUser(user, pass);
In the above...
You need to find it and fix it to keep from getting the NPE.
There are three variables used on this line:
data.addUser(user, pass);
Print out the values of all three to find which one has the...
Have you found the variable with the null value? Which variable is it?
What variable has the null value? When you find that out, the backtrack in the code to find out why that variable does not have a valid non-null value.
Which variable has the null value? If you can not tell by looking at the code, add a println statement just before the line with the NPE that prints out the values of all the variables used on the...
Please explain what is wrong with the posted program. Post the full text of any error messages.