Exception - Call to a member function get_name() on null

More information about this error