What you can do is debugging:
Debugging with Eclipse[
^]
Debugging with Netbeans[
^]
Seams like one of the values is NULL:
- a (whatever "a" is... please use better names)
- return value of a.getBalance()
- return value of a.getDepositamt()
So you should check the values by debugging.