java.lang.NullPointerException
One of the basic errors that you need to understand. You have a reference object somewhere that has not been initialized to refer to anything. Use your debugger to find out where it is.
Also, your code would be much easier to read if you made better use of spaces and newlines.