The input file being wrong was causing a null pointer exception.