Compiles, runs and no more NullPointerException