fixes #42 checks to make sure Customer is not null