handled null pointer exceptoin when there is no charges

This commit is contained in:
Pramod Nuthakki
2013-11-14 10:36:00 +05:30
parent 40882a002b
commit 9bfd46ffb4
@@ -906,7 +906,7 @@ public class Loan extends AbstractPersistable<Long> {
}
private void clearInstallmentLoanCharge(){
for(LoanCharge loanCharge:this.charges){
for(LoanCharge loanCharge:setOfLoanCharges()){
if(loanCharge.isInstalmentFee()){
loanCharge.clearLoanInstallmentCharges();
}