You need to post the full text of the error message. It shows what statement the error occurred on.

You should look at the statement with the error and see what variable is null. Then look back in...