Then add some printlns to the code. Step through it with a debugger. What ever method you use...
Get from the point where the program start to where the null pointer exception is thrown. Then look...
Type: Posts; User: jps
Then add some printlns to the code. Step through it with a debugger. What ever method you use...
Get from the point where the program start to where the null pointer exception is thrown. Then look...
Did you read the last part of post #10?
You have to make sure the variables are initialized before they are used.
What data does it display?
Check that retrieveData is not being called before run where the NullPointerException is...
Please post code on the forum within code tags, and not as an attachment.
See the Announcements page if you need help.
Most people will not bother to read short code that is not formatted, who did...