The reference to the list must not be NULL.