Call to a member function getCompany() on null