Compiles, runs but getMax/getMin give NullPointerExceptions