Try using a println to find out which variable(s) have a null value. Put the println on the line before the line that throws the exception. When you find the variable with a null value, back trace...