Java actually doesn't do pointer checks all the time