Add NULL pointer checks