Add some println() calls to print out the content of the messages and the data, copy what is printed and paste it here.
Type: Posts; User: Norm
Add some println() calls to print out the content of the messages and the data, copy what is printed and paste it here.
How and where does the code try to display things? What statement is used to display the things?
When object reference variables are defined they are given a null value. The code needs to assign a value to the variable to change it.
transList.add(newTrans) If that is the line where the NullPointerException happens, then
There are two variables on that line: transList and newTrans. You need to print the values of BOTH of them...
Printing the values will NOT keep the error from happening.
What code is on line 45? Did you add a println() statement before line 45 that printed out the values of ALL the variables used on line...
There is a variable with a null value on line 45. Look at line 45 in the your source and see what variable is null. Then backtrack in the code to see why that variable does not have a valid value....