Fixed null pointers, String.format() and Integer.parseInt() crash bugs.