Ensure data is not NULL.