If this line is where the NullPointerException occurred:

You need to determine Which variables in that line are null?
If you can't tell, print them out separately to see which one is null.
Then...