check for null pointer in free_response