| NullPointers are runtime exceptions, that is they only show up when you run the program; the compiler won't be able to catch them.
When you see the NullPointerException, it should give you some line numbers (although it might not). Can you show us what line the NullPointer is occuring at? Also, could you post the stack trace (the output from the exception)? |