// simple debugging code to check for null variables before // they trigger a NullPointerException if ( p == null ) { out.println( "p was null" ); } // alternatively assert p != null : "p was null";