> What does a java.lang.NullPointerException mena and
> what would cause it to happen?
A reference variable contains either a reference to an object (which you get by doing new on a class) or null (no reference). If you use the variable to reference an object when it in fact contains null you get a null pointer exception.
A reference (held in a reference variable) is sometimes also called a pointer because it can be thought of as pointing at a specific object somewhere in memory. The nullpointer, called null in Java, points at nothing. If you still use it as if it would be pointing at something you get this exception.