Check if pointers are null