Break when null pointer exception