add null pointer exception