Check for null pointer.