catch the null pointer, but continue