What shows null?
If something shows null and you think it should not be null, go to the place where you thought you assigned a non-null value and add a println (or ten) and see what is going on.
If...