Error thrown

Call to a member function iterate_data() on null