- added a NULL pointer test