Hello!
Please wrap your code using the tags [code=java] and ending the code with [ /code].
Is that the full error message that gets print out? It doesn't tell you which line the null value is on?...