trying to do a cumulative addition and getting a null pointer exception

Printable View