What is in salespersonTotal? You are only storing the values in sale, not salespersonTotal, so what do you expect it to give other than null?