call getCustomerData only if a customer is set