You get this exception when accessing a variable which does not contain a reference to an object, but the null-pointer.
You should get a file and a line-number with your exception. Find the line for which the NullPointerException has been called and check which variable is causing this problem.
Now think HARD why this variable hasn't been initialized.