Fixed a small bug. Check if a number is NULL. Now check it if a pointer is NULL.